]> git.saurik.com Git - apple/libresolv.git/blame - installapi.h
libresolv-67.40.1.tar.gz
[apple/libresolv.git] / installapi.h
CommitLineData
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
8typedef void (*dns_async_callback)(int32_t status, char *buf, uint32_t len, struct sockaddr *from, int fromlen, void *context);
9int32_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);
10int32_t dns_async_send(mach_port_t *p, const char *name, uint16_t dnsclass, uint16_t dnstype, uint32_t do_search);
11int32_t dns_async_receive(mach_port_t p, char **buf, uint32_t *len, struct sockaddr **from, uint32_t *fromlen);
12int32_t dns_async_handle_reply(void *msg);
13void dns_async_cancel(mach_port_t p);