Go to the documentation of this file.
35 #define EVENT_INPUT 0x01
36 #define EVENT_OUTPUT 0x02
37 #define EVENT_EXCEPT 0x04
38 #define EVENT_TIMEOUT 0x08
58 #define iochan_destroy(i) (void)((i)->destroyed = 1)
59 #define iochan_getfd(i) ((i)->fd)
60 #define iochan_setfd(i, d) ((i)->fd = d)
61 #define iochan_getdata(i) ((i)->data)
62 #define iochan_setdata(i, d) ((i)->data = d)
63 #define iochan_setflags(i, d) ((i)->flags = d)
64 #define iochan_setflag(i, d) ((i)->flags |= d)
65 #define iochan_clearflag(i, d) ((i)->flags &= ~(d))
66 #define iochan_getflag(i, d) ((i)->flags & d ? 1 : 0)
67 #define iochan_settimeout(i, t) ((i)->max_idle = (t), (i)->last_event = time(0))
68 #define iochan_activity(i) ((i)->last_event = time(0))