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