freebsd-dev/contrib/ntp/include/intreswork.h
Cy Schubert 2b15cb3d09 MFV ntp 4.2.8p1 (r258945, r275970, r276091, r276092, r276093, r278284)
Thanks to roberto for providing pointers to wedge this into HEAD.

Approved by:	roberto
2015-03-30 13:30:15 +00:00

30 lines
808 B
C

/*
* intreswork.h -- declarations private to ntp_intres.c, ntp_worker.c.
*/
#ifndef INTRESWORK_H
#define INTRESWORK_H
#include "ntp_worker.h"
#ifdef WORKER
extern int blocking_getaddrinfo(blocking_child *,
blocking_pipe_header *);
extern int blocking_getnameinfo(blocking_child *,
blocking_pipe_header *);
#ifdef TEST_BLOCKING_WORKER
extern void gai_test_callback(int rescode, int gai_errno,
void *context, const char *name,
const char *service,
const struct addrinfo *hints,
const struct addrinfo *ai_res);
extern void gni_test_callback(int rescode, int gni_errno,
sockaddr_u *psau, int flags,
const char *host,
const char *service, void *context);
#endif /* TEST_BLOCKING_WORKER */
#endif /* WORKER */
#endif /* INTRESWORK_H */