Lines Matching defs:event
46 #include "event.h"
54 bufferevent_add(struct event *ev, int timeout)
89 bufferevent_readcb(int fd, short event, void *arg)
97 if (event == EV_TIMEOUT) {
152 bufferevent_writecb(int fd, short event, void *arg)
158 if (event == EV_TIMEOUT) {
211 * Create a new buffered event object.
337 bufferevent_enable(struct bufferevent *bufev, short event)
339 if (event & EV_READ) {
343 if (event & EV_WRITE) {
348 bufev->enabled |= event;
353 bufferevent_disable(struct bufferevent *bufev, short event)
355 if (event & EV_READ) {
359 if (event & EV_WRITE) {
364 bufev->enabled &= ~event;
369 * Sets the read and write timeout for a buffered event.