overmind 0.1.0-x86_64-freebsd → 0.1.2-x86_64-freebsd
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/overmind/version.rb +1 -1
- metadata +2 -66
- data/libexec/prebuilt-tmux/bin/event_rpcgen.py +0 -1925
- data/libexec/prebuilt-tmux/bin/tmux +0 -0
- data/libexec/prebuilt-tmux/include/evdns.h +0 -45
- data/libexec/prebuilt-tmux/include/event.h +0 -83
- data/libexec/prebuilt-tmux/include/event2/buffer.h +0 -1077
- data/libexec/prebuilt-tmux/include/event2/buffer_compat.h +0 -116
- data/libexec/prebuilt-tmux/include/event2/bufferevent.h +0 -1024
- data/libexec/prebuilt-tmux/include/event2/bufferevent_compat.h +0 -104
- data/libexec/prebuilt-tmux/include/event2/bufferevent_ssl.h +0 -134
- data/libexec/prebuilt-tmux/include/event2/bufferevent_struct.h +0 -116
- data/libexec/prebuilt-tmux/include/event2/dns.h +0 -751
- data/libexec/prebuilt-tmux/include/event2/dns_compat.h +0 -358
- data/libexec/prebuilt-tmux/include/event2/dns_struct.h +0 -80
- data/libexec/prebuilt-tmux/include/event2/event-config.h +0 -570
- data/libexec/prebuilt-tmux/include/event2/event.h +0 -1672
- data/libexec/prebuilt-tmux/include/event2/event_compat.h +0 -230
- data/libexec/prebuilt-tmux/include/event2/event_struct.h +0 -180
- data/libexec/prebuilt-tmux/include/event2/http.h +0 -1192
- data/libexec/prebuilt-tmux/include/event2/http_compat.h +0 -94
- data/libexec/prebuilt-tmux/include/event2/http_struct.h +0 -152
- data/libexec/prebuilt-tmux/include/event2/keyvalq_struct.h +0 -80
- data/libexec/prebuilt-tmux/include/event2/listener.h +0 -192
- data/libexec/prebuilt-tmux/include/event2/rpc.h +0 -626
- data/libexec/prebuilt-tmux/include/event2/rpc_compat.h +0 -61
- data/libexec/prebuilt-tmux/include/event2/rpc_struct.h +0 -114
- data/libexec/prebuilt-tmux/include/event2/tag.h +0 -146
- data/libexec/prebuilt-tmux/include/event2/tag_compat.h +0 -49
- data/libexec/prebuilt-tmux/include/event2/thread.h +0 -253
- data/libexec/prebuilt-tmux/include/event2/util.h +0 -888
- data/libexec/prebuilt-tmux/include/event2/visibility.h +0 -67
- data/libexec/prebuilt-tmux/include/evhttp.h +0 -45
- data/libexec/prebuilt-tmux/include/evrpc.h +0 -45
- data/libexec/prebuilt-tmux/include/evutil.h +0 -39
- data/libexec/prebuilt-tmux/include/utf8proc.h +0 -743
- data/libexec/prebuilt-tmux/lib/libevent-2.1.7.dylib +0 -0
- data/libexec/prebuilt-tmux/lib/libevent.a +0 -0
- data/libexec/prebuilt-tmux/lib/libevent.dylib +0 -1
- data/libexec/prebuilt-tmux/lib/libevent.la +0 -41
- data/libexec/prebuilt-tmux/lib/libevent_core-2.1.7.dylib +0 -0
- data/libexec/prebuilt-tmux/lib/libevent_core.a +0 -0
- data/libexec/prebuilt-tmux/lib/libevent_core.dylib +0 -1
- data/libexec/prebuilt-tmux/lib/libevent_core.la +0 -41
- data/libexec/prebuilt-tmux/lib/libevent_extra-2.1.7.dylib +0 -0
- data/libexec/prebuilt-tmux/lib/libevent_extra.a +0 -0
- data/libexec/prebuilt-tmux/lib/libevent_extra.dylib +0 -1
- data/libexec/prebuilt-tmux/lib/libevent_extra.la +0 -41
- data/libexec/prebuilt-tmux/lib/libevent_openssl-2.1.7.dylib +0 -0
- data/libexec/prebuilt-tmux/lib/libevent_openssl.a +0 -0
- data/libexec/prebuilt-tmux/lib/libevent_openssl.dylib +0 -1
- data/libexec/prebuilt-tmux/lib/libevent_openssl.la +0 -41
- data/libexec/prebuilt-tmux/lib/libevent_pthreads-2.1.7.dylib +0 -0
- data/libexec/prebuilt-tmux/lib/libevent_pthreads.a +0 -0
- data/libexec/prebuilt-tmux/lib/libevent_pthreads.dylib +0 -1
- data/libexec/prebuilt-tmux/lib/libevent_pthreads.la +0 -41
- data/libexec/prebuilt-tmux/lib/libutf8proc.3.dylib +0 -0
- data/libexec/prebuilt-tmux/lib/libutf8proc.a +0 -0
- data/libexec/prebuilt-tmux/lib/libutf8proc.dylib +0 -1
- data/libexec/prebuilt-tmux/lib/pkgconfig/libevent.pc +0 -16
- data/libexec/prebuilt-tmux/lib/pkgconfig/libevent_core.pc +0 -16
- data/libexec/prebuilt-tmux/lib/pkgconfig/libevent_extra.pc +0 -16
- data/libexec/prebuilt-tmux/lib/pkgconfig/libevent_openssl.pc +0 -16
- data/libexec/prebuilt-tmux/lib/pkgconfig/libevent_pthreads.pc +0 -16
- data/libexec/prebuilt-tmux/lib/pkgconfig/libutf8proc.pc +0 -10
- data/libexec/prebuilt-tmux/share/man/man1/tmux.1 +0 -7242
@@ -1,230 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
|
3
|
-
* Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
|
4
|
-
*
|
5
|
-
* Redistribution and use in source and binary forms, with or without
|
6
|
-
* modification, are permitted provided that the following conditions
|
7
|
-
* are met:
|
8
|
-
* 1. Redistributions of source code must retain the above copyright
|
9
|
-
* notice, this list of conditions and the following disclaimer.
|
10
|
-
* 2. Redistributions in binary form must reproduce the above copyright
|
11
|
-
* notice, this list of conditions and the following disclaimer in the
|
12
|
-
* documentation and/or other materials provided with the distribution.
|
13
|
-
* 3. The name of the author may not be used to endorse or promote products
|
14
|
-
* derived from this software without specific prior written permission.
|
15
|
-
*
|
16
|
-
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
17
|
-
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
18
|
-
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
19
|
-
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
20
|
-
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
21
|
-
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
22
|
-
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
23
|
-
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
24
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
25
|
-
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
26
|
-
*/
|
27
|
-
#ifndef EVENT2_EVENT_COMPAT_H_INCLUDED_
|
28
|
-
#define EVENT2_EVENT_COMPAT_H_INCLUDED_
|
29
|
-
|
30
|
-
/** @file event2/event_compat.h
|
31
|
-
|
32
|
-
Potentially non-threadsafe versions of the functions in event.h: provided
|
33
|
-
only for backwards compatibility.
|
34
|
-
|
35
|
-
In the oldest versions of Libevent, event_base was not a first-class
|
36
|
-
structure. Instead, there was a single event base that every function
|
37
|
-
manipulated. Later, when separate event bases were added, the old functions
|
38
|
-
that didn't take an event_base argument needed to work by manipulating the
|
39
|
-
"current" event base. This could lead to thread-safety issues, and obscure,
|
40
|
-
hard-to-diagnose bugs.
|
41
|
-
|
42
|
-
@deprecated All functions in this file are by definition deprecated.
|
43
|
-
*/
|
44
|
-
#include <event2/visibility.h>
|
45
|
-
|
46
|
-
#ifdef __cplusplus
|
47
|
-
extern "C" {
|
48
|
-
#endif
|
49
|
-
|
50
|
-
#include <event2/event-config.h>
|
51
|
-
#ifdef EVENT__HAVE_SYS_TYPES_H
|
52
|
-
#include <sys/types.h>
|
53
|
-
#endif
|
54
|
-
#ifdef EVENT__HAVE_SYS_TIME_H
|
55
|
-
#include <sys/time.h>
|
56
|
-
#endif
|
57
|
-
|
58
|
-
/* For int types. */
|
59
|
-
#include <event2/util.h>
|
60
|
-
|
61
|
-
/**
|
62
|
-
Initialize the event API.
|
63
|
-
|
64
|
-
The event API needs to be initialized with event_init() before it can be
|
65
|
-
used. Sets the global current base that gets used for events that have no
|
66
|
-
base associated with them.
|
67
|
-
|
68
|
-
@deprecated This function is deprecated because it replaces the "current"
|
69
|
-
event_base, and is totally unsafe for multithreaded use. The replacement
|
70
|
-
is event_base_new().
|
71
|
-
|
72
|
-
@see event_base_set(), event_base_new()
|
73
|
-
*/
|
74
|
-
EVENT2_EXPORT_SYMBOL
|
75
|
-
struct event_base *event_init(void);
|
76
|
-
|
77
|
-
/**
|
78
|
-
Loop to process events.
|
79
|
-
|
80
|
-
Like event_base_dispatch(), but uses the "current" base.
|
81
|
-
|
82
|
-
@deprecated This function is deprecated because it is easily confused by
|
83
|
-
multiple calls to event_init(), and because it is not safe for
|
84
|
-
multithreaded use. The replacement is event_base_dispatch().
|
85
|
-
|
86
|
-
@see event_base_dispatch(), event_init()
|
87
|
-
*/
|
88
|
-
EVENT2_EXPORT_SYMBOL
|
89
|
-
int event_dispatch(void);
|
90
|
-
|
91
|
-
/**
|
92
|
-
Handle events.
|
93
|
-
|
94
|
-
This function behaves like event_base_loop(), but uses the "current" base
|
95
|
-
|
96
|
-
@deprecated This function is deprecated because it uses the event base from
|
97
|
-
the last call to event_init, and is therefore not safe for multithreaded
|
98
|
-
use. The replacement is event_base_loop().
|
99
|
-
|
100
|
-
@see event_base_loop(), event_init()
|
101
|
-
*/
|
102
|
-
EVENT2_EXPORT_SYMBOL
|
103
|
-
int event_loop(int);
|
104
|
-
|
105
|
-
|
106
|
-
/**
|
107
|
-
Exit the event loop after the specified time.
|
108
|
-
|
109
|
-
This function behaves like event_base_loopexit(), except that it uses the
|
110
|
-
"current" base.
|
111
|
-
|
112
|
-
@deprecated This function is deprecated because it uses the event base from
|
113
|
-
the last call to event_init, and is therefore not safe for multithreaded
|
114
|
-
use. The replacement is event_base_loopexit().
|
115
|
-
|
116
|
-
@see event_init, event_base_loopexit()
|
117
|
-
*/
|
118
|
-
EVENT2_EXPORT_SYMBOL
|
119
|
-
int event_loopexit(const struct timeval *);
|
120
|
-
|
121
|
-
|
122
|
-
/**
|
123
|
-
Abort the active event_loop() immediately.
|
124
|
-
|
125
|
-
This function behaves like event_base_loopbreakt(), except that it uses the
|
126
|
-
"current" base.
|
127
|
-
|
128
|
-
@deprecated This function is deprecated because it uses the event base from
|
129
|
-
the last call to event_init, and is therefore not safe for multithreaded
|
130
|
-
use. The replacement is event_base_loopbreak().
|
131
|
-
|
132
|
-
@see event_base_loopbreak(), event_init()
|
133
|
-
*/
|
134
|
-
EVENT2_EXPORT_SYMBOL
|
135
|
-
int event_loopbreak(void);
|
136
|
-
|
137
|
-
/**
|
138
|
-
Schedule a one-time event to occur.
|
139
|
-
|
140
|
-
@deprecated This function is obsolete, and has been replaced by
|
141
|
-
event_base_once(). Its use is deprecated because it relies on the
|
142
|
-
"current" base configured by event_init().
|
143
|
-
|
144
|
-
@see event_base_once()
|
145
|
-
*/
|
146
|
-
EVENT2_EXPORT_SYMBOL
|
147
|
-
int event_once(evutil_socket_t , short,
|
148
|
-
void (*)(evutil_socket_t, short, void *), void *, const struct timeval *);
|
149
|
-
|
150
|
-
|
151
|
-
/**
|
152
|
-
Get the kernel event notification mechanism used by Libevent.
|
153
|
-
|
154
|
-
@deprecated This function is obsolete, and has been replaced by
|
155
|
-
event_base_get_method(). Its use is deprecated because it relies on the
|
156
|
-
"current" base configured by event_init().
|
157
|
-
|
158
|
-
@see event_base_get_method()
|
159
|
-
*/
|
160
|
-
EVENT2_EXPORT_SYMBOL
|
161
|
-
const char *event_get_method(void);
|
162
|
-
|
163
|
-
|
164
|
-
/**
|
165
|
-
Set the number of different event priorities.
|
166
|
-
|
167
|
-
@deprecated This function is deprecated because it is easily confused by
|
168
|
-
multiple calls to event_init(), and because it is not safe for
|
169
|
-
multithreaded use. The replacement is event_base_priority_init().
|
170
|
-
|
171
|
-
@see event_base_priority_init()
|
172
|
-
*/
|
173
|
-
EVENT2_EXPORT_SYMBOL
|
174
|
-
int event_priority_init(int);
|
175
|
-
|
176
|
-
/**
|
177
|
-
Prepare an event structure to be added.
|
178
|
-
|
179
|
-
@deprecated event_set() is not recommended for new code, because it requires
|
180
|
-
a subsequent call to event_base_set() to be safe under most circumstances.
|
181
|
-
Use event_assign() or event_new() instead.
|
182
|
-
*/
|
183
|
-
EVENT2_EXPORT_SYMBOL
|
184
|
-
void event_set(struct event *, evutil_socket_t, short, void (*)(evutil_socket_t, short, void *), void *);
|
185
|
-
|
186
|
-
#define evtimer_set(ev, cb, arg) event_set((ev), -1, 0, (cb), (arg))
|
187
|
-
#define evsignal_set(ev, x, cb, arg) \
|
188
|
-
event_set((ev), (x), EV_SIGNAL|EV_PERSIST, (cb), (arg))
|
189
|
-
|
190
|
-
|
191
|
-
/**
|
192
|
-
@name timeout_* macros
|
193
|
-
|
194
|
-
@deprecated These macros are deprecated because their naming is inconsistent
|
195
|
-
with the rest of Libevent. Use the evtimer_* macros instead.
|
196
|
-
@{
|
197
|
-
*/
|
198
|
-
#define timeout_add(ev, tv) event_add((ev), (tv))
|
199
|
-
#define timeout_set(ev, cb, arg) event_set((ev), -1, 0, (cb), (arg))
|
200
|
-
#define timeout_del(ev) event_del(ev)
|
201
|
-
#define timeout_pending(ev, tv) event_pending((ev), EV_TIMEOUT, (tv))
|
202
|
-
#define timeout_initialized(ev) event_initialized(ev)
|
203
|
-
/**@}*/
|
204
|
-
|
205
|
-
/**
|
206
|
-
@name signal_* macros
|
207
|
-
|
208
|
-
@deprecated These macros are deprecated because their naming is inconsistent
|
209
|
-
with the rest of Libevent. Use the evsignal_* macros instead.
|
210
|
-
@{
|
211
|
-
*/
|
212
|
-
#define signal_add(ev, tv) event_add((ev), (tv))
|
213
|
-
#define signal_set(ev, x, cb, arg) \
|
214
|
-
event_set((ev), (x), EV_SIGNAL|EV_PERSIST, (cb), (arg))
|
215
|
-
#define signal_del(ev) event_del(ev)
|
216
|
-
#define signal_pending(ev, tv) event_pending((ev), EV_SIGNAL, (tv))
|
217
|
-
#define signal_initialized(ev) event_initialized(ev)
|
218
|
-
/**@}*/
|
219
|
-
|
220
|
-
#ifndef EVENT_FD
|
221
|
-
/* These macros are obsolete; use event_get_fd and event_get_signal instead. */
|
222
|
-
#define EVENT_FD(ev) ((int)event_get_fd(ev))
|
223
|
-
#define EVENT_SIGNAL(ev) event_get_signal(ev)
|
224
|
-
#endif
|
225
|
-
|
226
|
-
#ifdef __cplusplus
|
227
|
-
}
|
228
|
-
#endif
|
229
|
-
|
230
|
-
#endif /* EVENT2_EVENT_COMPAT_H_INCLUDED_ */
|
@@ -1,180 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
|
3
|
-
* Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
|
4
|
-
*
|
5
|
-
* Redistribution and use in source and binary forms, with or without
|
6
|
-
* modification, are permitted provided that the following conditions
|
7
|
-
* are met:
|
8
|
-
* 1. Redistributions of source code must retain the above copyright
|
9
|
-
* notice, this list of conditions and the following disclaimer.
|
10
|
-
* 2. Redistributions in binary form must reproduce the above copyright
|
11
|
-
* notice, this list of conditions and the following disclaimer in the
|
12
|
-
* documentation and/or other materials provided with the distribution.
|
13
|
-
* 3. The name of the author may not be used to endorse or promote products
|
14
|
-
* derived from this software without specific prior written permission.
|
15
|
-
*
|
16
|
-
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
17
|
-
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
18
|
-
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
19
|
-
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
20
|
-
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
21
|
-
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
22
|
-
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
23
|
-
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
24
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
25
|
-
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
26
|
-
*/
|
27
|
-
#ifndef EVENT2_EVENT_STRUCT_H_INCLUDED_
|
28
|
-
#define EVENT2_EVENT_STRUCT_H_INCLUDED_
|
29
|
-
|
30
|
-
/** @file event2/event_struct.h
|
31
|
-
|
32
|
-
Structures used by event.h. Using these structures directly WILL harm
|
33
|
-
forward compatibility: be careful.
|
34
|
-
|
35
|
-
No field declared in this file should be used directly in user code. Except
|
36
|
-
for historical reasons, these fields would not be exposed at all.
|
37
|
-
*/
|
38
|
-
|
39
|
-
#ifdef __cplusplus
|
40
|
-
extern "C" {
|
41
|
-
#endif
|
42
|
-
|
43
|
-
#include <event2/event-config.h>
|
44
|
-
#ifdef EVENT__HAVE_SYS_TYPES_H
|
45
|
-
#include <sys/types.h>
|
46
|
-
#endif
|
47
|
-
#ifdef EVENT__HAVE_SYS_TIME_H
|
48
|
-
#include <sys/time.h>
|
49
|
-
#endif
|
50
|
-
|
51
|
-
/* For int types. */
|
52
|
-
#include <event2/util.h>
|
53
|
-
|
54
|
-
/* For evkeyvalq */
|
55
|
-
#include <event2/keyvalq_struct.h>
|
56
|
-
|
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
|
65
|
-
|
66
|
-
#define EVLIST_ALL 0xff
|
67
|
-
|
68
|
-
/* Fix so that people don't have to run with <sys/queue.h> */
|
69
|
-
#ifndef TAILQ_ENTRY
|
70
|
-
#define EVENT_DEFINED_TQENTRY_
|
71
|
-
#define TAILQ_ENTRY(type) \
|
72
|
-
struct { \
|
73
|
-
struct type *tqe_next; /* next element */ \
|
74
|
-
struct type **tqe_prev; /* address of previous next element */ \
|
75
|
-
}
|
76
|
-
#endif /* !TAILQ_ENTRY */
|
77
|
-
|
78
|
-
#ifndef TAILQ_HEAD
|
79
|
-
#define EVENT_DEFINED_TQHEAD_
|
80
|
-
#define TAILQ_HEAD(name, type) \
|
81
|
-
struct name { \
|
82
|
-
struct type *tqh_first; \
|
83
|
-
struct type **tqh_last; \
|
84
|
-
}
|
85
|
-
#endif
|
86
|
-
|
87
|
-
/* Fix so that people don't have to run with <sys/queue.h> */
|
88
|
-
#ifndef LIST_ENTRY
|
89
|
-
#define EVENT_DEFINED_LISTENTRY_
|
90
|
-
#define LIST_ENTRY(type) \
|
91
|
-
struct { \
|
92
|
-
struct type *le_next; /* next element */ \
|
93
|
-
struct type **le_prev; /* address of previous next element */ \
|
94
|
-
}
|
95
|
-
#endif /* !LIST_ENTRY */
|
96
|
-
|
97
|
-
#ifndef LIST_HEAD
|
98
|
-
#define EVENT_DEFINED_LISTHEAD_
|
99
|
-
#define LIST_HEAD(name, type) \
|
100
|
-
struct name { \
|
101
|
-
struct type *lh_first; /* first element */ \
|
102
|
-
}
|
103
|
-
#endif /* !LIST_HEAD */
|
104
|
-
|
105
|
-
struct event;
|
106
|
-
|
107
|
-
struct event_callback {
|
108
|
-
TAILQ_ENTRY(event_callback) evcb_active_next;
|
109
|
-
short evcb_flags;
|
110
|
-
ev_uint8_t evcb_pri; /* smaller numbers are higher priority */
|
111
|
-
ev_uint8_t evcb_closure;
|
112
|
-
/* allows us to adopt for different types of events */
|
113
|
-
union {
|
114
|
-
void (*evcb_callback)(evutil_socket_t, short, void *);
|
115
|
-
void (*evcb_selfcb)(struct event_callback *, void *);
|
116
|
-
void (*evcb_evfinalize)(struct event *, void *);
|
117
|
-
void (*evcb_cbfinalize)(struct event_callback *, void *);
|
118
|
-
} evcb_cb_union;
|
119
|
-
void *evcb_arg;
|
120
|
-
};
|
121
|
-
|
122
|
-
struct event_base;
|
123
|
-
struct event {
|
124
|
-
struct event_callback ev_evcallback;
|
125
|
-
|
126
|
-
/* for managing timeouts */
|
127
|
-
union {
|
128
|
-
TAILQ_ENTRY(event) ev_next_with_common_timeout;
|
129
|
-
int min_heap_idx;
|
130
|
-
} ev_timeout_pos;
|
131
|
-
evutil_socket_t ev_fd;
|
132
|
-
|
133
|
-
struct event_base *ev_base;
|
134
|
-
|
135
|
-
union {
|
136
|
-
/* used for io events */
|
137
|
-
struct {
|
138
|
-
LIST_ENTRY (event) ev_io_next;
|
139
|
-
struct timeval ev_timeout;
|
140
|
-
} ev_io;
|
141
|
-
|
142
|
-
/* used by signal events */
|
143
|
-
struct {
|
144
|
-
LIST_ENTRY (event) ev_signal_next;
|
145
|
-
short ev_ncalls;
|
146
|
-
/* Allows deletes in callback */
|
147
|
-
short *ev_pncalls;
|
148
|
-
} ev_signal;
|
149
|
-
} ev_;
|
150
|
-
|
151
|
-
short ev_events;
|
152
|
-
short ev_res; /* result passed to event callback */
|
153
|
-
struct timeval ev_timeout;
|
154
|
-
};
|
155
|
-
|
156
|
-
TAILQ_HEAD (event_list, event);
|
157
|
-
|
158
|
-
#ifdef EVENT_DEFINED_TQENTRY_
|
159
|
-
#undef TAILQ_ENTRY
|
160
|
-
#endif
|
161
|
-
|
162
|
-
#ifdef EVENT_DEFINED_TQHEAD_
|
163
|
-
#undef TAILQ_HEAD
|
164
|
-
#endif
|
165
|
-
|
166
|
-
LIST_HEAD (event_dlist, event);
|
167
|
-
|
168
|
-
#ifdef EVENT_DEFINED_LISTENTRY_
|
169
|
-
#undef LIST_ENTRY
|
170
|
-
#endif
|
171
|
-
|
172
|
-
#ifdef EVENT_DEFINED_LISTHEAD_
|
173
|
-
#undef LIST_HEAD
|
174
|
-
#endif
|
175
|
-
|
176
|
-
#ifdef __cplusplus
|
177
|
-
}
|
178
|
-
#endif
|
179
|
-
|
180
|
-
#endif /* EVENT2_EVENT_STRUCT_H_INCLUDED_ */
|