mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
add tag
This commit is contained in:
@@ -43,6 +43,7 @@ typedef void (*isc_eventdestructor_t)(isc_event_t *);
|
|||||||
#define ISC_EVENT_COMMON(ltype) \
|
#define ISC_EVENT_COMMON(ltype) \
|
||||||
size_t size; \
|
size_t size; \
|
||||||
unsigned int attributes; \
|
unsigned int attributes; \
|
||||||
|
unsigned int tag; \
|
||||||
isc_eventtype_t type; \
|
isc_eventtype_t type; \
|
||||||
isc_taskaction_t action; \
|
isc_taskaction_t action; \
|
||||||
void * arg; \
|
void * arg; \
|
||||||
@@ -53,10 +54,11 @@ typedef void (*isc_eventdestructor_t)(isc_event_t *);
|
|||||||
|
|
||||||
#define ISC_EVENTATTR_NOPURGE 0x00000001
|
#define ISC_EVENTATTR_NOPURGE 0x00000001
|
||||||
|
|
||||||
#define ISC_EVENT_INIT(event, sz, at, ty, ac, ar, sn, df, da) \
|
#define ISC_EVENT_INIT(event, sz, at, ta, ty, ac, ar, sn, df, da) \
|
||||||
do { \
|
do { \
|
||||||
(event)->size = (sz); \
|
(event)->size = (sz); \
|
||||||
(event)->attributes = (at); \
|
(event)->attributes = (at); \
|
||||||
|
(event)->tag = (ta); \
|
||||||
(event)->type = (ty); \
|
(event)->type = (ty); \
|
||||||
(event)->action = (ac); \
|
(event)->action = (ac); \
|
||||||
(event)->arg = (ar); \
|
(event)->arg = (ar); \
|
||||||
|
Reference in New Issue
Block a user