summaryrefslogtreecommitdiff
path: root/include/intreswork.h
blob: c343ac0135950f2527b12fc75e67ae2c38d60f5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * 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 */