From f1c294ce38591c30674cdddc5ad165b681bf8ac2 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Thu, 10 Jun 1999 00:18:47 +0000 Subject: [PATCH] add ISC_EVENT_INIT --- lib/isc/include/isc/event.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/isc/include/isc/event.h b/lib/isc/include/isc/event.h index 53550fb51e..8b00ce99fe 100644 --- a/lib/isc/include/isc/event.h +++ b/lib/isc/include/isc/event.h @@ -53,6 +53,19 @@ typedef void (*isc_eventdestructor_t)(isc_event_t *); #define ISC_EVENTATTR_NOPURGE 0x00000001 +#define ISC_EVENT_INIT(event, sz, at, ty, ac, ar, sn, df, da) \ +do { \ + (event)->size = (sz); \ + (event)->attributes = (at); \ + (event)->type = (ty); \ + (event)->action = (ac); \ + (event)->arg = (ar); \ + (event)->sender = (sn); \ + (event)->destroy = (df); \ + (event)->destroy_arg = (da); \ + ISC_LINK_INIT((event), link); \ +} while (0) + /* * This structure is public because "subclassing" it may be useful when * defining new event types.