Lines Matching defs:handler
25 void (*handler)(int sock, void *eloop_ctx, void *sock_ctx);
32 void (*handler)(void *eloop_ctx, void *sock_ctx);
39 void (*handler)(int sig, void *eloop_ctx, void *signal_ctx);
69 void (*handler)(int sock, void *eloop_ctx,
84 tmp[eloop.reader_count].handler = handler;
119 void (*handler)(void *eloop_ctx, void *timeout_ctx),
136 timeout->handler = handler;
165 int eloop_cancel_timeout(void (*handler)(void *eloop_ctx, void *sock_ctx),
176 if (timeout->handler == handler &&
197 int eloop_is_timeout_registered(void (*handler)(void *eloop_ctx,
205 if (tmp->handler == handler &&
217 /* TODO: replace with suitable signal handler */
249 eloop.signals[i].handler(eloop.signals[i].sig,
258 void (*handler)(int sig, void *eloop_ctx,
273 tmp[eloop.signal_count].handler = handler;
278 /* TODO: register signal handler */
284 int eloop_register_signal_terminate(void (*handler)(int sig, void *eloop_ctx,
290 int ret = eloop_register_signal(SIGINT, handler, user_data);
292 ret = eloop_register_signal(SIGTERM, handler, user_data);
299 int eloop_register_signal_reconfig(void (*handler)(int sig, void *eloop_ctx,
305 return eloop_register_signal(SIGHUP, handler, user_data);
342 tmp->handler(tmp->eloop_data,
352 * TODO: call each handler that has pending data to
356 eloop.readers[i].handler(