summaryrefslogtreecommitdiffstats
path: root/bsd/freebsd/contrib/ntp/include/intreswork.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsd/freebsd/contrib/ntp/include/intreswork.h')
-rw-r--r--bsd/freebsd/contrib/ntp/include/intreswork.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/bsd/freebsd/contrib/ntp/include/intreswork.h b/bsd/freebsd/contrib/ntp/include/intreswork.h
new file mode 100644
index 0000000..c343ac0
--- /dev/null
+++ b/bsd/freebsd/contrib/ntp/include/intreswork.h
@@ -0,0 +1,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 */