Lines Matching defs:bits
89 # define UB_EV_BITS_CB(C) void my_ ## C (int fd, short bits, void *arg) \
90 { (C)(fd, UB_EV_BITS(bits), arg); }
156 my_event_add_bits(struct ub_event* ev, short bits)
158 AS_MY_EVENT(ev)->ev.ev_events |= NATIVE_BITS(bits);
162 my_event_del_bits(struct ub_event* ev, short bits)
164 AS_MY_EVENT(ev)->ev.ev_events &= ~NATIVE_BITS(bits);
276 my_event_new(struct ub_event_base* base, int fd, short bits,
285 event_set(&my_ev->ev, fd, NATIVE_BITS(bits), NATIVE_BITS_CB(cb), arg);
508 ub_event_new(struct ub_event_base* base, int fd, short bits,
514 return (*base->vmt->new_event)(base, fd, bits, cb, arg);
545 ub_event_add_bits(struct ub_event* ev, short bits)
550 (*ev->vmt->add_bits)(ev, bits);
555 ub_event_del_bits(struct ub_event* ev, short bits)
560 (*ev->vmt->del_bits)(ev, bits);