56#ifndef ADNS_H_INCLUDED
57#define ADNS_H_INCLUDED
64# include <netinet/in.h>
70# define ADNS_SOCKET int
71# define adns_socket_close(sck) close(sck)
72# define adns_socket_read(sck, data, len) read(sck, data, len)
73# define adns_socket_write(sck, data, len) write(sck, data, len)
74# define ADNS_CAPTURE_ERRNO {}
75# define ADNS_CLEAR_ERRNO {}
378 FILE *diagfile ,
const char *configtext);
777#define ADNS_POLLFDS_RECOMMENDED 2
793 const char **rrtname_r,
const char **fmtname_r,
795 const void *datap,
char **data_r);
ADNS_API const char * adns_errtypeabbrev(adns_status st)
ADNS_API void adns_addserver(adns_state state, struct in_addr server)
ADNS_API void adns_finish(adns_state ads)
ADNS_API int adns_processexceptional(adns_state ads, ADNS_SOCKET fd, const struct timeval *now)
ADNS_API int adns_submit_reverse_any(adns_state ads, const struct sockaddr *addr, const char *rzone, adns_rrtype type, adns_queryflags flags, void *context, adns_query *query_r)
ADNS_API const char * adns_strerror(adns_status st)
ADNS_API int adns_synchronous(adns_state ads, const char *owner, adns_rrtype type, adns_queryflags flags, adns_answer **answer_r)
ADNS_API void adns_firsttimeout(adns_state ads, struct timeval **tv_mod, struct timeval *tv_buf, struct timeval now)
ADNS_API int adns_processreadable(adns_state ads, ADNS_SOCKET fd, const struct timeval *now)
ADNS_API adns_status adns_rr_info(adns_rrtype type, const char **rrtname_r, const char **fmtname_r, int *len_r, const void *datap, char **data_r)
ADNS_API void adns_beforeselect(adns_state ads, int *maxfd, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval **tv_mod, struct timeval *tv_buf, const struct timeval *now)
ADNS_API int adns_numservers(adns_state state)
ADNS_API int adns_check(adns_state ads, adns_query *query_io, adns_answer **answer_r, void **context_r)
ADNS_API void adns_forallqueries_begin(adns_state ads)
ADNS_API int adns_init(adns_state *newstate_r, adns_initflags flags, FILE *diagfile)
ADNS_API void adns_checkconsistency(adns_state ads, adns_query qu)
ADNS_API void adns_globalsystemfailure(adns_state ads)
ADNS_API int adns_wait(adns_state ads, adns_query *query_io, adns_answer **answer_r, void **context_r)
ADNS_API adns_query adns_forallqueries_next(adns_state ads, void **context_r)
@ adns_s_querydomaintoolong
@ adns_s_answerdomaintoolong
@ adns_s_querydomainwrong
@ adns_s_rcodeformaterror
@ adns_s_answerdomaininvalid
@ adns_s_rcodenotimplemented
@ adns_s_querydomaininvalid
ADNS_API void adns_afterselect(adns_state ads, int maxfd, const fd_set *readfds, const fd_set *writefds, const fd_set *exceptfds, const struct timeval *now)
ADNS_API int adns_submit_reverse(adns_state ads, const struct sockaddr *addr, adns_rrtype type, adns_queryflags flags, void *context, adns_query *query_r)
ADNS_API const char * adns_errabbrev(adns_status st)
ADNS_API void adns_ccf_search(adns_state state, const char *fn, int lno, const char *buf)
struct adns__query * adns_query
ADNS_API void adns_processtimeouts(adns_state ads, const struct timeval *now)
ADNS_API int adns_wait_poll(adns_state ads, adns_query *query_io, adns_answer **answer_r, void **context_r)
ADNS_API int adns_submit(adns_state ads, const char *owner, adns_rrtype type, adns_queryflags flags, void *context, adns_query *query_r)
ADNS_API int adns_init_strcfg(adns_state *newstate_r, adns_initflags flags, FILE *diagfile, const char *configtext)
ADNS_API int adns_processwriteable(adns_state ads, ADNS_SOCKET fd, const struct timeval *now)
ADNS_API void adns_cancel(adns_query query)
ADNS_API int adns_processany(adns_state ads)
@ adns_qf_quoteok_anshost
@ adns_qf_quotefail_cname
struct adns__state * adns_state
static struct sockaddr_in sa
#define adns_afterpoll(a, b, c, d)
#define adns_beforepoll(a, b, c, d, e)
GLuint GLuint GLsizei GLenum type
GLenum GLuint GLenum GLsizei const GLchar * buf
GLenum const GLvoid * addr
adns_rr_inthostaddr * inthostaddr
adns_rr_intstrpair * intstrpair
adns_rr_strpair * strpair
adns_rr_hostaddr * hostaddr
static rfbScreenInfoPtr server
static GLenum _GLUfuncptr fn