aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/event_loop.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-06-13 03:31:05 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-06-13 03:31:05 +0200
commit1c0481869fc680ea19627d8babec6de9a6784eb7 (patch)
tree47e75f13811f8dd943e82a30864b09faf1b6e2e4 /src/event_loop.h
parentREADME: update (diff)
downloadcimple-1c0481869fc680ea19627d8babec6de9a6784eb7.tar.gz
cimple-1c0481869fc680ea19627d8babec6de9a6784eb7.zip
event_loop: add event_loop_add_once
Diffstat (limited to '')
-rw-r--r--src/event_loop.h3
1 files changed, 1 insertions, 2 deletions
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