27 #ifndef EVENT2_EVENT_STRUCT_H_INCLUDED_
28 #define EVENT2_EVENT_STRUCT_H_INCLUDED_
43 #include <event2/event-config.h>
44 #ifdef EVENT__HAVE_SYS_TYPES_H
45 #include <sys/types.h>
47 #ifdef EVENT__HAVE_SYS_TIME_H
55 #include <event2/keyvalq_struct.h>
57 #define EVLIST_TIMEOUT 0x01
58 #define EVLIST_INSERTED 0x02
59 #define EVLIST_SIGNAL 0x04
60 #define EVLIST_ACTIVE 0x08
61 #define EVLIST_INTERNAL 0x10
62 #define EVLIST_ACTIVE_LATER 0x20
63 #define EVLIST_FINALIZING 0x40
64 #define EVLIST_INIT 0x80
66 #define EVLIST_ALL 0xff
70 #define EVENT_DEFINED_TQENTRY_
71 #define TAILQ_ENTRY(type) \
73 struct type *tqe_next; \
74 struct type **tqe_prev; \
79 #define EVENT_DEFINED_TQHEAD_
80 #define TAILQ_HEAD(name, type) \
82 struct type *tqh_first; \
83 struct type **tqh_last; \
89 #define EVENT_DEFINED_LISTENTRY_
90 #define LIST_ENTRY(type) \
92 struct type *le_next; \
93 struct type **le_prev; \
98 #define EVENT_DEFINED_LISTHEAD_
99 #define LIST_HEAD(name, type) \
101 struct type *lh_first; \
111 ev_uint8_t evcb_closure;
116 void (*evcb_evfinalize)(
struct event *,
void *);
128 TAILQ_ENTRY(
event) ev_next_with_common_timeout;
138 LIST_ENTRY (
event) ev_io_next;
139 struct timeval ev_timeout;
144 LIST_ENTRY (
event) ev_signal_next;
153 struct timeval ev_timeout;
156 TAILQ_HEAD (event_list,
event);
158 #ifdef EVENT_DEFINED_TQENTRY_
162 #ifdef EVENT_DEFINED_TQHEAD_
166 LIST_HEAD (event_dlist,
event);
168 #ifdef EVENT_DEFINED_LISTENTRY_
172 #ifdef EVENT_DEFINED_LISTHEAD_
Definition: event-internal.h:208
Definition: event_struct.h:107
Definition: event_struct.h:123
#define evutil_socket_t
Definition: util.h:310