static int update_timer(lcb_io_opt_t cbcio, void *event, uint32_t usecs, void *cb_data, lcb_ioE_callback handler) { /*we cannot do any sane caching or clever magic like we do for I/O watchers, because the time will always be different*/ plcb_EVENT *cevent = (plcb_EVENT*)event; cevent->lcb_handler = handler; cevent->lcb_arg = cb_data; modify_timer_perl(cbcio->v.v0.cookie, cevent, usecs, PLCB_EVACTION_WATCH); return 0; }
static int update_timer(plcba_cbcio *cbcio, void *event, uint32_t usecs, void *cb_data, plcba_c_evhandler handler) { /*we cannot do any sane caching or clever magic like we do for I/O watchers, because the time will always be different*/ PLCBA_c_event *cevent = (PLCBA_c_event*)event; cevent->c.handler = handler; cevent->c.arg = cb_data; modify_timer_perl(cbcio->v.v0.cookie, cevent, usecs, PLCBA_EVACTION_WATCH); return 0; }
static void delete_timer(plcba_cbcio *cbcio, void *event) { PLCBA_c_event *cevent = (PLCBA_c_event*)event; //warn("Deletion requested for timer!"); modify_timer_perl(cbcio->v.v0.cookie, cevent, 0, PLCBA_EVACTION_UNWATCH); }
static void delete_timer(lcb_io_opt_t cbcio, void *event) { plcb_EVENT *cevent = (plcb_EVENT*)event; modify_timer_perl(cbcio->v.v0.cookie, cevent, 0, PLCB_EVACTION_UNWATCH); }