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