From 1c0481869fc680ea19627d8babec6de9a6784eb7 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 13 Jun 2023 03:31:05 +0200 Subject: event_loop: add event_loop_add_once --- src/event_loop.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/event_loop.h') diff --git a/src/event_loop.h b/src/event_loop.h index 0e13b48..c08e84d 100644 --- a/src/event_loop.h +++ b/src/event_loop.h @@ -15,10 +15,9 @@ void event_loop_destroy(struct event_loop *); int event_loop_run(struct event_loop *); -#define EVENT_LOOP_REMOVE 1 - typedef int (*event_handler)(struct event_loop *, int fd, short revents, void *arg); int event_loop_add(struct event_loop *, int fd, short events, event_handler, void *arg); +int event_loop_add_once(struct event_loop *, int fd, short events, event_handler, void *arg); #endif -- cgit v1.2.3