27 #ifndef _EVENT2_EVENT_STRUCT_H_
28 #define _EVENT2_EVENT_STRUCT_H_
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_INIT 0x80
65 #define EVLIST_ALL (0xf000 | 0x9f)
69 #define _EVENT_DEFINED_TQENTRY
70 #define TAILQ_ENTRY(type) \
72 struct type *tqe_next; \
73 struct type **tqe_prev; \
78 #define _EVENT_DEFINED_TQHEAD
79 #define TAILQ_HEAD(name, type) \
81 struct type *tqh_first; \
82 struct type **tqh_last; \
88 TAILQ_ENTRY(
event) ev_active_next;
89 TAILQ_ENTRY(
event) ev_next;
92 TAILQ_ENTRY(
event) ev_next_with_common_timeout;
102 TAILQ_ENTRY(
event) ev_io_next;
103 struct timeval ev_timeout;
108 TAILQ_ENTRY(
event) ev_signal_next;
119 ev_uint8_t ev_closure;
120 struct timeval ev_timeout;
127 TAILQ_HEAD (event_list,
event);
129 #ifdef _EVENT_DEFINED_TQENTRY
133 #ifdef _EVENT_DEFINED_TQHEAD
Structure to represent a single event.
Definition: event_struct.h:87
#define evutil_socket_t
A type wide enough to hold the output of "socket()" or "accept()".
Definition: util.h:278
Common convenience functions for cross-platform portability and related socket manipulations.
Definition: event-internal.h:167