summaryrefslogtreecommitdiff
path: root/ares.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-12-04 12:53:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-12-04 12:53:03 +0000
commitf61fa37f40158cca871fdce5d4a546e8ba3f482a (patch)
tree7e2833594e756504e67e0123c4a479a9d7bb05bd /ares.h
parent20e7876430a4bd75f469602d34dcd6c315d0cc0f (diff)
downloadc-ares-f61fa37f40158cca871fdce5d4a546e8ba3f482a.tar.gz
c-ares-f61fa37f40158cca871fdce5d4a546e8ba3f482a.tar.bz2
c-ares-f61fa37f40158cca871fdce5d4a546e8ba3f482a.zip
Gregor Jasny provided the patch that introduces ares_set_socket_callback(),
and I edited it to also get duped by ares_dup().
Diffstat (limited to 'ares.h')
-rw-r--r--ares.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ares.h b/ares.h
index 495130d..919bafb 100644
--- a/ares.h
+++ b/ares.h
@@ -229,6 +229,8 @@ typedef void (*ares_host_callback)(void *arg, int status, int timeouts,
struct hostent *hostent);
typedef void (*ares_nameinfo_callback)(void *arg, int status, int timeouts,
char *node, char *service);
+typedef int (*ares_sock_create_callback)(ares_socket_t socket_fd,
+ int type, void *data);
int ares_init(ares_channel *channelptr);
int ares_init_options(ares_channel *channelptr, struct ares_options *options,
@@ -239,6 +241,9 @@ void ares_destroy_options(struct ares_options *options);
int ares_dup(ares_channel *dest, ares_channel src);
void ares_destroy(ares_channel channel);
void ares_cancel(ares_channel channel);
+void ares_set_socket_callback(ares_channel channel,
+ ares_sock_create_callback callback,
+ void *user_data);
void ares_send(ares_channel channel, const unsigned char *qbuf, int qlen,
ares_callback callback, void *arg);
void ares_query(ares_channel channel, const char *name, int dnsclass,