Bug 1013: Don't assume errno is between 0 and 100000
[elinks.git] / src / protocol / proxy.h
blobbb399567db8298d7a1bc9d9f2beeca71fd8546a3
1 #ifndef EL__PROTOCOL_PROXY_H
2 #define EL__PROTOCOL_PROXY_H
4 struct connection_state;
5 struct uri;
7 /* Checks if the passed URI has been configured to go through a proxy. The
8 * fragment is removed from the returned URI. */
9 /* If @connection_state is non-NULL it will be set to indicate what error
10 * occurred if the function returns NULL. */
11 struct uri *get_proxy_uri(struct uri *uri, struct connection_state *connection_state);
13 /* ``Translates'' the passed URI into the URI being proxied. If it is not a
14 * proxy:// URI it will return the URI with the fragment removed. */
15 struct uri *get_proxied_uri(struct uri *uri);
17 #endif