From: Maria Matejka Date: Thu, 23 Nov 2023 11:06:58 +0000 (+0100) Subject: Events: create and enqueue in one macro X-Git-Tag: v3.0.0~328 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48abd6a96332ea7e391015d7e659d642a32b263f;p=thirdparty%2Fbird.git Events: create and enqueue in one macro --- diff --git a/lib/event.h b/lib/event.h index 6fd9f31c8..f89c17ba2 100644 --- a/lib/event.h +++ b/lib/event.h @@ -71,5 +71,8 @@ ev_new_init(pool *p, void (*hook)(void *), void *data) return e; } +#define ev_new_send(loop, pool, hook, data) \ + ev_send_loop((loop), ev_new_init((pool), (hook), (data))) + #endif