2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Add missing libisc.def definitions, netmgr version of isc_sockettype_t.

This commit is contained in:
Witold Kręcicki
2020-07-01 12:25:35 +02:00
committed by Witold Krecicki
parent 7500fb9319
commit 25f84ffc68
2 changed files with 11 additions and 7 deletions

View File

@@ -12,17 +12,19 @@
#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);

View File

@@ -454,8 +454,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