]> git.ipfire.org Git - thirdparty/curl.git/commit
url: Add option CURLOPT_RESOLVER_START_FUNCTION
authorFrancisco Sedano <fran@fransedano.net>
Wed, 14 Feb 2018 17:20:43 +0000 (17:20 +0000)
committerJay Satiro <raysatiro@yahoo.com>
Thu, 22 Feb 2018 02:29:10 +0000 (21:29 -0500)
commit23713645d4e9ae00a3065f7a3d995e57748da4c7
treef0add953900167057056308a77ef9ba8ac6228a6
parentdd027c80fe444e9555ad324ddf8e461eb358f4a3
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
16 files changed:
docs/libcurl/curl_easy_setopt.3
docs/libcurl/opts/CURLOPT_RESOLVER_START_DATA.3 [new file with mode: 0644]
docs/libcurl/opts/CURLOPT_RESOLVER_START_FUNCTION.3 [new file with mode: 0644]
docs/libcurl/opts/Makefile.inc
docs/libcurl/symbols-in-versions
include/curl/curl.h
include/curl/typecheck-gcc.h
lib/hostip.c
lib/setopt.c
lib/urldata.h
packages/OS400/curl.inc.in
tests/data/Makefile.inc
tests/data/test655 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib655.c [new file with mode: 0644]
tests/libtest/mk-lib1521.pl