]>
Commit | Line | Data |
---|---|---|
9c886c39 A |
1 | #include <sys/cdefs.h> |
2 | #include <mach/mach.h> | |
3 | #include <netdb.h> | |
4 | #include <resolv.h> | |
5 | ||
6 | // These are declared in Libinfo's headers. These declarations should eventually move into headers provided by libresolv. | |
7 | ||
8 | typedef void (*dns_async_callback)(int32_t status, char *buf, uint32_t len, struct sockaddr *from, int fromlen, void *context); | |
9 | int32_t dns_async_start(mach_port_t *p, const char *name, uint16_t dnsclass, uint16_t dnstype, uint32_t do_search, dns_async_callback callback, void *context); | |
10 | int32_t dns_async_send(mach_port_t *p, const char *name, uint16_t dnsclass, uint16_t dnstype, uint32_t do_search); | |
11 | int32_t dns_async_receive(mach_port_t p, char **buf, uint32_t *len, struct sockaddr **from, uint32_t *fromlen); | |
12 | int32_t dns_async_handle_reply(void *msg); | |
13 | void dns_async_cancel(mach_port_t p); |