diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-13 03:31:05 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-13 03:31:05 +0200 |
commit | 1c0481869fc680ea19627d8babec6de9a6784eb7 (patch) | |
tree | 47e75f13811f8dd943e82a30864b09faf1b6e2e4 /src/command.h | |
parent | README: update (diff) | |
download | cimple-1c0481869fc680ea19627d8babec6de9a6784eb7.tar.gz cimple-1c0481869fc680ea19627d8babec6de9a6784eb7.zip |
event_loop: add event_loop_add_once
Diffstat (limited to 'src/command.h')
-rw-r--r-- | src/command.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/command.h b/src/command.h index 4ef245f..8daa912 100644 --- a/src/command.h +++ b/src/command.h @@ -29,8 +29,6 @@ void cmd_dispatcher_destroy(struct cmd_dispatcher *); int cmd_dispatcher_handle(const struct cmd_dispatcher *, const struct msg *command, struct msg **response); -int cmd_dispatcher_add_to_event_loop(struct cmd_dispatcher *, struct event_loop *, int fd); - struct cmd_conn_ctx { int fd; void *arg; @@ -39,4 +37,7 @@ struct cmd_conn_ctx { /* This is supposed to be used as an argument to tcp_server_accept. */ int cmd_dispatcher_handle_conn(int conn_fd, void *dispatcher); +/* This is supposed to be used as an argument to event_loop_add. */ +int cmd_dispatcher_handle_event(struct event_loop *, int fd, short revents, void *arg); + #endif |