diff options
author | Francisco Sedano <fran@fransedano.net> | 2018-02-14 17:20:43 +0000 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2018-02-21 21:29:10 -0500 |
commit | 23713645d4e9ae00a3065f7a3d995e57748da4c7 (patch) | |
tree | f0add953900167057056308a77ef9ba8ac6228a6 /lib/urldata.h | |
parent | dd027c80fe444e9555ad324ddf8e461eb358f4a3 (diff) | |
download | curl-23713645d4e9ae00a3065f7a3d995e57748da4c7.tar.gz |
url: Add option CURLOPT_RESOLVER_START_FUNCTION
- Add new option CURLOPT_RESOLVER_START_FUNCTION to set a callback that
will be called every time before a new resolve request is started
(ie before a host is resolved) with a pointer to backend-specific
resolver data. Currently this is only useful for ares.
- Add new option CURLOPT_RESOLVER_START_DATA to set a user pointer to
pass to the resolver start callback.
Closes https://github.com/curl/curl/pull/2311
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 35014c232..975333867 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -1681,6 +1681,10 @@ struct UserDefined { struct Curl_http2_dep *stream_dependents; bool abstract_unix_socket; + + curl_resolver_start_callback resolver_start; /* optional callback called + before resolver start */ + void *resolver_start_client; /* pointer to pass to resolver start callback */ }; struct Names { |