]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Events: create and enqueue in one macro
authorMaria Matejka <mq@ucw.cz>
Thu, 23 Nov 2023 11:06:58 +0000 (12:06 +0100)
committerMaria Matejka <mq@ucw.cz>
Mon, 4 Dec 2023 09:39:32 +0000 (10:39 +0100)
lib/event.h

index 6fd9f31c8af49dadf3ff1638a7d1487e6813093e..f89c17ba2c214f17bcde4a4c9835acc9ee615ebc 100644 (file)
@@ -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