Lines Matching refs:events

305 typedef void (*EventFunc)( void*  user, int  events );
326 int events; /* events that occured */ member
338 struct epoll_event* events; member
349 l->events = NULL; in looper_init()
357 xfree(l->events); in looper_done()
390 xrenew( l->events, new_max ); in looper_grow()
399 ev.events = hook->wanted; in looper_grow()
424 hook->events = 0; in looper_add()
428 ev.events = 0; in looper_add()
457 looper_enable( Looper* l, int fd, int events ) in looper_enable() argument
466 if (events & ~hook->wanted) { in looper_enable()
469 hook->wanted |= events; in looper_enable()
470 ev.events = hook->wanted; in looper_enable()
482 looper_disable( Looper* l, int fd, int events ) in looper_disable() argument
491 if (events & hook->wanted) { in looper_disable()
494 hook->wanted &= ~events; in looper_disable()
495 ev.events = hook->wanted; in looper_disable()
512 count = epoll_wait( l->epoll_fd, l->events, l->num_fds, -1 ); in looper_loop()
527 LoopHook* hook = l->events[n].data.ptr; in looper_loop()
529 hook->events = l->events[n].events; in looper_loop()
538 hook->ev_func( hook->ev_user, hook->events ); in looper_loop()
555 ev.events = hook->wanted; in looper_loop()
895 fdhandler_event( FDHandler* f, int events ) in fdhandler_event() argument
906 if (events & EPOLLIN) { in fdhandler_event()
920 if (events & (EPOLLHUP|EPOLLERR)) { in fdhandler_event()
927 if (events & EPOLLOUT && f->out_first) { in fdhandler_event()
979 fdhandler_accept_event( FDHandler* f, int events ) in fdhandler_accept_event() argument
981 if (events & EPOLLIN) { in fdhandler_accept_event()
997 if (events & (EPOLLHUP|EPOLLERR)) { in fdhandler_accept_event()