Lines Matching defs:cb
54 void (*cb)(int, short, void *);
81 #define event_set(ev, fd, flags, cb, cbarg) \
82 _event_set(__FILE__, __LINE__, ev, fd, flags, cb, cbarg)
88 #define evtimer_set(ev, cb, cbarg) \
89 _event_set(__FILE__, __LINE__, ev, -1, 0, cb, cbarg)
95 void (*cb)(int, short, void *), void *cbarg)
97 event_log_debug("set %s:%d ev=%p, fd=%d, flags=%#x, cb=%p, cbarg=%p",
98 file, line, ev, fd, flags, cb, cbarg);
103 __event_set(ev, fd, flags, cb, cbarg);
109 event_log_debug("add %s:%d ev=%p, fd=%d, flags=%#x, cb=%p, cbarg=%p, " \
110 "timeout=%p", file, line, ev, ev->fd, ev->flags, ev->cb,
122 event_log_debug("del %s:%d ev=%p, fd=%d, flags=%#x, cb=%p, cbarg=%p",
123 file, line, ev, ev->fd, ev->flags, ev->cb, ev->cbarg);
136 #define event_set(ev, fd, flags, cb, cbarg) \
137 __event_set(ev, fd, flags, cb, cbarg)
143 #define evtimer_set(ev, cb, cbarg) \
144 __event_set(ev, -1, 0, cb, cbarg)