xref: /freebsd/contrib/ntp/include/intreswork.h (revision 416ba5c74546f32a993436a99516d35008e9f384)
1 /*
2  * intreswork.h -- declarations private to ntp_intres.c, ntp_worker.c.
3  */
4 #ifndef INTRESWORK_H
5 #define INTRESWORK_H
6 
7 #include "ntp_worker.h"
8 
9 #ifdef WORKER
10 
11 extern int blocking_getaddrinfo(blocking_child *,
12 				blocking_pipe_header *);
13 extern int blocking_getnameinfo(blocking_child *,
14 				blocking_pipe_header *);
15 
16 #ifdef TEST_BLOCKING_WORKER
17 extern void gai_test_callback(int rescode, int gai_errno,
18 			      void *context, const char *name,
19 			      const char *service,
20 			      const struct addrinfo *hints,
21 			      const struct addrinfo *ai_res);
22 extern void gni_test_callback(int rescode, int gni_errno,
23 			      sockaddr_u *psau, int flags,
24 			      const char *host,
25 			      const char *service, void *context);
26 #endif	/* TEST_BLOCKING_WORKER */
27 #endif	/* WORKER */
28 
29 #endif	/* INTRESWORK_H */
30