]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add missing libisc.def definitions, netmgr version of isc_sockettype_t.
authorWitold Kręcicki <wpk@isc.org>
Wed, 1 Jul 2020 10:25:35 +0000 (12:25 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 1 Oct 2020 14:44:43 +0000 (16:44 +0200)
(cherry picked from commit 25f84ffc688072a79ba11d6c89042a71e317a97f)

lib/isc/include/isc/netmgr.h
lib/isc/win32/libisc.def.in

index 3a4905698ba2200c6d151a0a106d33e735ee25f5..14b8b2b648f21f204a961c37fc2585d9db939538 100644 (file)
 #pragma once
 
 #include <isc/mem.h>
+#include <isc/region.h>
 #include <isc/result.h>
 #include <isc/types.h>
 
+/*
+ * Replacement for isc_sockettype_t provided by socket.h.
+ */
 typedef enum {
-       NMEV_READ,
-       NMEV_WRITE,
-       NMEV_ACCEPT,
-       NMEV_CONNECTED,
-       NMEV_CANCELLED,
-       NMEV_SHUTDOWN
-} isc_nm_eventtype;
+       isc_socktype_tcp = 1,
+       isc_socktype_udp = 2,
+       isc_socktype_unix = 3,
+       isc_socktype_raw = 4
+} isc_socktype_t;
 
 typedef void (*isc_nm_recv_cb_t)(isc_nmhandle_t *handle, isc_result_t eresult,
                                 isc_region_t *region, void *cbarg);
index 2965723660b9b13cab2c504b9480eac8001c97d0..d51ce4570e7e867835dd5c31f2cd714b9e449dc4 100644 (file)
@@ -458,8 +458,10 @@ isc_nm_closedown
 isc_nm_destroy
 isc_nm_detach
 isc_nm_listentcpdns
+isc_nm_listentcp
 isc_nm_listenudp
 isc_nm_maxudp
+isc_nm_read
 isc_nm_send
 isc_nm_setstats
 isc_nm_start