diff options
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/command.c b/src/command.c index e3a7773..5d6aa19 100644 --- a/src/command.c +++ b/src/command.c @@ -181,8 +181,8 @@ free_ctx: return ret; } -static int cmd_dispatcher_handle_event(UNUSED struct event_loop *loop, int fd, short revents, - void *_dispatcher) +int cmd_dispatcher_handle_event(UNUSED struct event_loop *loop, int fd, short revents, + void *_dispatcher) { struct cmd_dispatcher *dispatcher = (struct cmd_dispatcher *)_dispatcher; struct msg *request = NULL, *response = NULL; @@ -222,9 +222,3 @@ free_ctx: return ret; } - -int cmd_dispatcher_add_to_event_loop(struct cmd_dispatcher *dispatcher, struct event_loop *loop, - int fd) -{ - return event_loop_add(loop, fd, POLLIN, cmd_dispatcher_handle_event, dispatcher); -} |