-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathevent_8h_source.html
572 lines (570 loc) · 107 KB
/
event_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libevent: event2/event.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">libevent
 <span id="projectnumber">2.2.1</span>
</div>
<div id="projectbrief">Event notification library</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_db160b4728e6067cf5f9cc14ec42c79d.html">event2</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">event.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="event_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2000-2007 Niels Provos <[email protected]></span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * modification, are permitted provided that the following conditions</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * are met:</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * 1. Redistributions of source code must retain the above copyright</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * notice, this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * notice, this list of conditions and the following disclaimer in the</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * documentation and/or other materials provided with the distribution.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * 3. The name of the author may not be used to endorse or promote products</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * derived from this software without specific prior written permission.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#ifndef EVENT2_EVENT_H_INCLUDED_</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#define EVENT2_EVENT_H_INCLUDED_</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="preprocessor">#include <event2/visibility.h></span></div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  </div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  </div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="preprocessor">#include <event2/event-config.h></span></div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="preprocessor">#ifdef EVENT__HAVE_SYS_TYPES_H</span></div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="preprocessor">#include <sys/types.h></span></div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="preprocessor">#ifdef EVENT__HAVE_SYS_TIME_H</span></div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="preprocessor">#include <sys/time.h></span></div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  </div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="preprocessor">#include <stdio.h></span></div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  </div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="comment">/* For int types. */</span></div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="preprocessor">#include <<a class="code" href="util_8h.html">event2/util.h</a>></span></div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  </div>
<div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="structevent__base.html"> 219</a></span> <span class="keyword">struct </span><a class="code" href="structevent__base.html">event_base</a></div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> #ifdef EVENT_IN_DOXYGEN_</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> {<span class="comment">/*Empty body so that doxygen will generate documentation here.*/</span>}</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> ;</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  </div>
<div class="line"><a name="l00276"></a><span class="lineno"><a class="line" href="structevent.html"> 276</a></span> <span class="keyword">struct </span><a class="code" href="structevent.html">event</a></div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> #ifdef EVENT_IN_DOXYGEN_</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> {<span class="comment">/*Empty body so that doxygen will generate documentation here.*/</span>}</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> ;</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  </div>
<div class="line"><a name="l00295"></a><span class="lineno"><a class="line" href="structevent__config.html"> 295</a></span> <span class="keyword">struct </span><a class="code" href="structevent__config.html">event_config</a></div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> #ifdef EVENT_IN_DOXYGEN_</div>
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span> {<span class="comment">/*Empty body so that doxygen will generate documentation here.*/</span>}</div>
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span> ;</div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  </div>
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span> <span class="keywordtype">void</span> <a class="code" href="event_8h.html#a37441a3defac55b5d2513521964b2af5">event_enable_debug_mode</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  </div>
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span> <span class="keywordtype">void</span> <a class="code" href="event_8h.html#a1347923dccea548c036ccc7614c5b595">event_debug_unassign</a>(<span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *);</div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  </div>
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span> <span class="keyword">struct </span><a class="code" href="structevent__base.html">event_base</a> *<a class="code" href="event_8h.html#af34c025430d445427a2a5661082405c3">event_base_new</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  </div>
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a7f05aabb4fbcd2ba676bb6ba92f21630">event_reinit</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base);</div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  </div>
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a19d60cb72a1af398247f40e92cf07056">event_base_dispatch</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base);</div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  </div>
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="event_8h.html#ae0910900c306cef32e2623272c7b7cb0">event_base_get_method</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *eb);</div>
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  </div>
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="event_8h.html#a138b72aa85ec5c344714867204ed3d3d">event_base_get_signal_method</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *eb);</div>
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  </div>
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span> <span class="keyword">const</span> <span class="keywordtype">char</span> **<a class="code" href="event_8h.html#a7abb8da4e334086319949997fd51c799">event_get_supported_methods</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  </div>
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a0c624a8830f69b32ee11faabc8ebb99a">event_gettime_monotonic</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base, <span class="keyword">struct</span> timeval *tp);</div>
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  </div>
<div class="line"><a name="l00425"></a><span class="lineno"><a class="line" href="event_8h.html#aa3786406bc592990f0583ac211110fa3"> 425</a></span> <span class="preprocessor">#define EVENT_BASE_COUNT_ACTIVE 1U</span></div>
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  </div>
<div class="line"><a name="l00428"></a><span class="lineno"><a class="line" href="event_8h.html#aac4e49b51ffe924451c9048c5061a224"> 428</a></span> <span class="preprocessor">#define EVENT_BASE_COUNT_VIRTUAL 2U</span></div>
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  </div>
<div class="line"><a name="l00431"></a><span class="lineno"><a class="line" href="event_8h.html#a36205e544778da7d91ec8555b962851a"> 431</a></span> <span class="preprocessor">#define EVENT_BASE_COUNT_ADDED 4U</span></div>
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  </div>
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a3dd8aaea50a18e1b300ae6a138132743">event_base_get_num_events</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *eb, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> flags);</div>
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  </div>
<div class="line"><a name="l00465"></a><span class="lineno"> 465</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00466"></a><span class="lineno"> 466</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a9cf1a991dcad465adf4330a79576b148">event_base_get_max_events</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *eb, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> flags, <span class="keywordtype">int</span> clear);</div>
<div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  </div>
<div class="line"><a name="l00478"></a><span class="lineno"> 478</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00479"></a><span class="lineno"> 479</span> <span class="keyword">struct </span><a class="code" href="structevent__config.html">event_config</a> *<a class="code" href="event_8h.html#a76f3b4191e43c8b4758b99da761c858e">event_config_new</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  </div>
<div class="line"><a name="l00486"></a><span class="lineno"> 486</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00487"></a><span class="lineno"> 487</span> <span class="keywordtype">void</span> <a class="code" href="event_8h.html#ad7917192d1f78884de03a8777013fd1c">event_config_free</a>(<span class="keyword">struct</span> <a class="code" href="structevent__config.html">event_config</a> *cfg);</div>
<div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  </div>
<div class="line"><a name="l00501"></a><span class="lineno"> 501</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00502"></a><span class="lineno"> 502</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#ac5328011d251a7af085fdc19deb748bc">event_config_avoid_method</a>(<span class="keyword">struct</span> <a class="code" href="structevent__config.html">event_config</a> *cfg, <span class="keyword">const</span> <span class="keywordtype">char</span> *method);</div>
<div class="line"><a name="l00503"></a><span class="lineno"> 503</span>  </div>
<div class="line"><a name="l00513"></a><span class="lineno"><a class="line" href="event_8h.html#ae7da61aef13e27a3047151b696b44c80"> 513</a></span> <span class="keyword">enum</span> <a class="code" href="event_8h.html#ae7da61aef13e27a3047151b696b44c80">event_method_feature</a> {</div>
<div class="line"><a name="l00515"></a><span class="lineno"><a class="line" href="event_8h.html#ae7da61aef13e27a3047151b696b44c80ab407cae60af925dba44bd66e56e5f897"> 515</a></span>  <a class="code" href="event_8h.html#ae7da61aef13e27a3047151b696b44c80ab407cae60af925dba44bd66e56e5f897">EV_FEATURE_ET</a> = 0x01,</div>
<div class="line"><a name="l00520"></a><span class="lineno"><a class="line" href="event_8h.html#ae7da61aef13e27a3047151b696b44c80a7a6f2de86c09b92aa175f950190bf706"> 520</a></span>  <a class="code" href="event_8h.html#ae7da61aef13e27a3047151b696b44c80a7a6f2de86c09b92aa175f950190bf706">EV_FEATURE_O1</a> = 0x02,</div>
<div class="line"><a name="l00523"></a><span class="lineno"><a class="line" href="event_8h.html#ae7da61aef13e27a3047151b696b44c80a2e964e8a8f3033d26d52831fb8eec199"> 523</a></span>  <a class="code" href="event_8h.html#ae7da61aef13e27a3047151b696b44c80a2e964e8a8f3033d26d52831fb8eec199">EV_FEATURE_FDS</a> = 0x04,</div>
<div class="line"><a name="l00530"></a><span class="lineno"><a class="line" href="event_8h.html#ae7da61aef13e27a3047151b696b44c80af28b206cf4665dacc2c6bf09446e29b7"> 530</a></span>  <a class="code" href="event_8h.html#ae7da61aef13e27a3047151b696b44c80af28b206cf4665dacc2c6bf09446e29b7">EV_FEATURE_EARLY_CLOSE</a> = 0x08</div>
<div class="line"><a name="l00531"></a><span class="lineno"> 531</span> };</div>
<div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  </div>
<div class="line"><a name="l00541"></a><span class="lineno"><a class="line" href="event_8h.html#acfef69af45abee54725f40f7f29986c5"> 541</a></span> <span class="keyword">enum</span> <a class="code" href="event_8h.html#acfef69af45abee54725f40f7f29986c5">event_base_config_flag</a> {</div>
<div class="line"><a name="l00548"></a><span class="lineno"><a class="line" href="event_8h.html#acfef69af45abee54725f40f7f29986c5ac1302f72251168137258335e945e2ae5"> 548</a></span>  <a class="code" href="event_8h.html#acfef69af45abee54725f40f7f29986c5ac1302f72251168137258335e945e2ae5">EVENT_BASE_FLAG_NOLOCK</a> = 0x01,</div>
<div class="line"><a name="l00551"></a><span class="lineno"><a class="line" href="event_8h.html#acfef69af45abee54725f40f7f29986c5a230574947412d83f2dd19fe8c7d286e7"> 551</a></span>  <a class="code" href="event_8h.html#acfef69af45abee54725f40f7f29986c5a230574947412d83f2dd19fe8c7d286e7">EVENT_BASE_FLAG_IGNORE_ENV</a> = 0x02,</div>
<div class="line"><a name="l00560"></a><span class="lineno"><a class="line" href="event_8h.html#acfef69af45abee54725f40f7f29986c5a4ffb2510ab533d7156f412ee4f0c08ea"> 560</a></span>  <a class="code" href="event_8h.html#acfef69af45abee54725f40f7f29986c5a4ffb2510ab533d7156f412ee4f0c08ea">EVENT_BASE_FLAG_STARTUP_IOCP</a> = 0x04,</div>
<div class="line"><a name="l00564"></a><span class="lineno"><a class="line" href="event_8h.html#acfef69af45abee54725f40f7f29986c5a057dff1977c48174f0a0f0c43ef92ec5"> 564</a></span>  <a class="code" href="event_8h.html#acfef69af45abee54725f40f7f29986c5a057dff1977c48174f0a0f0c43ef92ec5">EVENT_BASE_FLAG_NO_CACHE_TIME</a> = 0x08,</div>
<div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  </div>
<div class="line"><a name="l00580"></a><span class="lineno"><a class="line" href="event_8h.html#acfef69af45abee54725f40f7f29986c5acceb45f3098787247044929f92f4296e"> 580</a></span>  <a class="code" href="event_8h.html#acfef69af45abee54725f40f7f29986c5acceb45f3098787247044929f92f4296e">EVENT_BASE_FLAG_EPOLL_USE_CHANGELIST</a> = 0x10,</div>
<div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  </div>
<div class="line"><a name="l00587"></a><span class="lineno"><a class="line" href="event_8h.html#acfef69af45abee54725f40f7f29986c5af6080f1d7c5067868cbc749d1cfe56e9"> 587</a></span>  <a class="code" href="event_8h.html#acfef69af45abee54725f40f7f29986c5af6080f1d7c5067868cbc749d1cfe56e9">EVENT_BASE_FLAG_PRECISE_TIMER</a> = 0x20,</div>
<div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  </div>
<div class="line"><a name="l00600"></a><span class="lineno"><a class="line" href="event_8h.html#acfef69af45abee54725f40f7f29986c5a9eaa69643a73f5fb5959db017c9050a5"> 600</a></span>  <a class="code" href="event_8h.html#acfef69af45abee54725f40f7f29986c5a9eaa69643a73f5fb5959db017c9050a5">EVENT_BASE_FLAG_EPOLL_DISALLOW_TIMERFD</a> = 0x40,</div>
<div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  </div>
<div class="line"><a name="l00606"></a><span class="lineno"><a class="line" href="event_8h.html#acfef69af45abee54725f40f7f29986c5a86d9f5574e29964187bafe245b211447"> 606</a></span>  <a class="code" href="event_8h.html#acfef69af45abee54725f40f7f29986c5a86d9f5574e29964187bafe245b211447">EVENT_BASE_FLAG_USE_SIGNALFD</a> = 0x80,</div>
<div class="line"><a name="l00607"></a><span class="lineno"> 607</span> };</div>
<div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  </div>
<div class="line"><a name="l00616"></a><span class="lineno"> 616</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00617"></a><span class="lineno"> 617</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#aced890aa77dac1669325f74a27584f03">event_base_get_features</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base);</div>
<div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  </div>
<div class="line"><a name="l00641"></a><span class="lineno"> 641</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00642"></a><span class="lineno"> 642</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#ab76526f5bcd7b05d63f38fca439d7492">event_config_require_features</a>(<span class="keyword">struct</span> <a class="code" href="structevent__config.html">event_config</a> *cfg, <span class="keywordtype">int</span> feature);</div>
<div class="line"><a name="l00643"></a><span class="lineno"> 643</span>  </div>
<div class="line"><a name="l00650"></a><span class="lineno"> 650</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00651"></a><span class="lineno"> 651</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#ae9e42b61a7e8465b7c897432c4ddcabd">event_config_set_flag</a>(<span class="keyword">struct</span> <a class="code" href="structevent__config.html">event_config</a> *cfg, <span class="keywordtype">int</span> flag);</div>
<div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  </div>
<div class="line"><a name="l00662"></a><span class="lineno"> 662</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00663"></a><span class="lineno"> 663</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a472425045a342e48429e408eaeb81d18">event_config_set_num_cpus_hint</a>(<span class="keyword">struct</span> <a class="code" href="structevent__config.html">event_config</a> *cfg, <span class="keywordtype">int</span> cpus);</div>
<div class="line"><a name="l00664"></a><span class="lineno"> 664</span>  </div>
<div class="line"><a name="l00693"></a><span class="lineno"> 693</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00694"></a><span class="lineno"> 694</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#aeb08f9ff880ff8a07eb623124f48f979">event_config_set_max_dispatch_interval</a>(<span class="keyword">struct</span> <a class="code" href="structevent__config.html">event_config</a> *cfg,</div>
<div class="line"><a name="l00695"></a><span class="lineno"> 695</span>  <span class="keyword">const</span> <span class="keyword">struct</span> timeval *max_interval, <span class="keywordtype">int</span> max_callbacks,</div>
<div class="line"><a name="l00696"></a><span class="lineno"> 696</span>  <span class="keywordtype">int</span> min_priority);</div>
<div class="line"><a name="l00697"></a><span class="lineno"> 697</span>  </div>
<div class="line"><a name="l00710"></a><span class="lineno"> 710</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00711"></a><span class="lineno"> 711</span> <span class="keyword">struct </span><a class="code" href="structevent__base.html">event_base</a> *<a class="code" href="event_8h.html#a864798e5b3c6aa8d2f9e9c5035a3e6da">event_base_new_with_config</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structevent__config.html">event_config</a> *cfg);</div>
<div class="line"><a name="l00712"></a><span class="lineno"> 712</span>  </div>
<div class="line"><a name="l00724"></a><span class="lineno"> 724</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00725"></a><span class="lineno"> 725</span> <span class="keywordtype">void</span> <a class="code" href="event_8h.html#a91f9deb12c37f2ff586e65e8b9a46641">event_base_free</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *eb);</div>
<div class="line"><a name="l00726"></a><span class="lineno"> 726</span>  </div>
<div class="line"><a name="l00730"></a><span class="lineno"> 730</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00731"></a><span class="lineno"> 731</span> <span class="keywordtype">void</span> <a class="code" href="event_8h.html#a385fb6f81ab73f9c95d77b7179f780e0">event_base_free_nofinalize</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *);</div>
<div class="line"><a name="l00732"></a><span class="lineno"> 732</span>  </div>
<div class="line"><a name="l00736"></a><span class="lineno"> 736</span> <span class="preprocessor">#define EVENT_LOG_DEBUG 0</span></div>
<div class="line"><a name="l00737"></a><span class="lineno"> 737</span> <span class="preprocessor">#define EVENT_LOG_MSG 1</span></div>
<div class="line"><a name="l00738"></a><span class="lineno"> 738</span> <span class="preprocessor">#define EVENT_LOG_WARN 2</span></div>
<div class="line"><a name="l00739"></a><span class="lineno"> 739</span> <span class="preprocessor">#define EVENT_LOG_ERR 3</span></div>
<div class="line"><a name="l00740"></a><span class="lineno"> 740</span>  </div>
<div class="line"><a name="l00742"></a><span class="lineno"> 742</span> <span class="comment">/* Obsolete names: these are deprecated, but older programs might use them.</span></div>
<div class="line"><a name="l00743"></a><span class="lineno"> 743</span> <span class="comment"> * They violate the reserved-identifier namespace. */</span></div>
<div class="line"><a name="l00744"></a><span class="lineno"> 744</span> <span class="preprocessor">#define _EVENT_LOG_DEBUG EVENT_LOG_DEBUG</span></div>
<div class="line"><a name="l00745"></a><span class="lineno"> 745</span> <span class="preprocessor">#define _EVENT_LOG_MSG EVENT_LOG_MSG</span></div>
<div class="line"><a name="l00746"></a><span class="lineno"> 746</span> <span class="preprocessor">#define _EVENT_LOG_WARN EVENT_LOG_WARN</span></div>
<div class="line"><a name="l00747"></a><span class="lineno"> 747</span> <span class="preprocessor">#define _EVENT_LOG_ERR EVENT_LOG_ERR</span></div>
<div class="line"><a name="l00748"></a><span class="lineno"> 748</span>  </div>
<div class="line"><a name="l00754"></a><span class="lineno"><a class="line" href="event_8h.html#a185f44c610d7ee21ecba720561b2e09c"> 754</a></span> <span class="keyword">typedef</span> void (*<a class="code" href="event_8h.html#a185f44c610d7ee21ecba720561b2e09c">event_log_cb</a>)(<span class="keywordtype">int</span> severity, <span class="keyword">const</span> <span class="keywordtype">char</span> *msg);</div>
<div class="line"><a name="l00765"></a><span class="lineno"> 765</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00766"></a><span class="lineno"> 766</span> <span class="keywordtype">void</span> <a class="code" href="event_8h.html#a2ec6be5aff4af06b22da20d5ad747ff2">event_set_log_callback</a>(<a class="code" href="event_8h.html#a185f44c610d7ee21ecba720561b2e09c">event_log_cb</a> cb);</div>
<div class="line"><a name="l00767"></a><span class="lineno"> 767</span>  </div>
<div class="line"><a name="l00773"></a><span class="lineno"><a class="line" href="event_8h.html#abb799b636f0d3aab6ca17426d88473cf"> 773</a></span> <span class="keyword">typedef</span> void (*<a class="code" href="event_8h.html#abb799b636f0d3aab6ca17426d88473cf">event_fatal_cb</a>)(<span class="keywordtype">int</span> err);</div>
<div class="line"><a name="l00774"></a><span class="lineno"> 774</span>  </div>
<div class="line"><a name="l00787"></a><span class="lineno"> 787</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00788"></a><span class="lineno"> 788</span> <span class="keywordtype">void</span> <a class="code" href="event_8h.html#a1d0efefe738406049a7bd71e2e59ccfb">event_set_fatal_callback</a>(<a class="code" href="event_8h.html#abb799b636f0d3aab6ca17426d88473cf">event_fatal_cb</a> cb);</div>
<div class="line"><a name="l00789"></a><span class="lineno"> 789</span>  </div>
<div class="line"><a name="l00790"></a><span class="lineno"> 790</span> <span class="preprocessor">#define EVENT_DBG_ALL 0xffffffffu</span></div>
<div class="line"><a name="l00791"></a><span class="lineno"> 791</span> <span class="preprocessor">#define EVENT_DBG_NONE 0</span></div>
<div class="line"><a name="l00792"></a><span class="lineno"> 792</span>  </div>
<div class="line"><a name="l00807"></a><span class="lineno"> 807</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00808"></a><span class="lineno"> 808</span> <span class="keywordtype">void</span> <a class="code" href="event_8h.html#abce01eafdfef974a80fdf9a507f5eca9">event_enable_debug_logging</a>(ev_uint32_t which);</div>
<div class="line"><a name="l00809"></a><span class="lineno"> 809</span>  </div>
<div class="line"><a name="l00819"></a><span class="lineno"> 819</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00820"></a><span class="lineno"> 820</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a20fb823ec65b17519ec07aee1a0a22ba">event_base_set</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *eb, <span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *ev);</div>
<div class="line"><a name="l00821"></a><span class="lineno"> 821</span>  </div>
<div class="line"><a name="l00829"></a><span class="lineno"><a class="line" href="event_8h.html#afab575b1e867dde13a2c7f2f967e0e4e"> 829</a></span> <span class="preprocessor">#define EVLOOP_ONCE 0x01</span></div>
<div class="line"><a name="l00830"></a><span class="lineno"> 830</span>  </div>
<div class="line"><a name="l00832"></a><span class="lineno"><a class="line" href="event_8h.html#a10b9c102337d0ece8607c9c01bc4f7c8"> 832</a></span> <span class="preprocessor">#define EVLOOP_NONBLOCK 0x02</span></div>
<div class="line"><a name="l00833"></a><span class="lineno"> 833</span>  </div>
<div class="line"><a name="l00837"></a><span class="lineno"><a class="line" href="event_8h.html#a6751a7d5867ff8e7807400a93ffd5b08"> 837</a></span> <span class="preprocessor">#define EVLOOP_NO_EXIT_ON_EMPTY 0x04</span></div>
<div class="line"><a name="l00838"></a><span class="lineno"> 838</span>  </div>
<div class="line"><a name="l00859"></a><span class="lineno"> 859</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00860"></a><span class="lineno"> 860</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#acd7da32086d1e37008e7c76c9ea54fc4">event_base_loop</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *eb, <span class="keywordtype">int</span> flags);</div>
<div class="line"><a name="l00861"></a><span class="lineno"> 861</span>  </div>
<div class="line"><a name="l00877"></a><span class="lineno"> 877</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00878"></a><span class="lineno"> 878</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a67ba4db4b6e7467b3412219530603e60">event_base_loopexit</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *eb, <span class="keyword">const</span> <span class="keyword">struct</span> timeval *tv);</div>
<div class="line"><a name="l00879"></a><span class="lineno"> 879</span>  </div>
<div class="line"><a name="l00893"></a><span class="lineno"> 893</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00894"></a><span class="lineno"> 894</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a28e0be91488e8a0ed57a582f3343eaf6">event_base_loopbreak</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *eb);</div>
<div class="line"><a name="l00895"></a><span class="lineno"> 895</span>  </div>
<div class="line"><a name="l00913"></a><span class="lineno"> 913</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00914"></a><span class="lineno"> 914</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a34ce349afe4a37119e1ac50710642ccb">event_base_loopcontinue</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *eb);</div>
<div class="line"><a name="l00915"></a><span class="lineno"> 915</span>  </div>
<div class="line"><a name="l00928"></a><span class="lineno"> 928</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00929"></a><span class="lineno"> 929</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a654b3b2c5923a9c0620907701383f6dd">event_base_got_exit</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *eb);</div>
<div class="line"><a name="l00930"></a><span class="lineno"> 930</span>  </div>
<div class="line"><a name="l00943"></a><span class="lineno"> 943</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00944"></a><span class="lineno"> 944</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#ae3853087c016ff8e877d914b1bda8f90">event_base_got_break</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *eb);</div>
<div class="line"><a name="l00945"></a><span class="lineno"> 945</span>  </div>
<div class="line"><a name="l00955"></a><span class="lineno"><a class="line" href="event_8h.html#a37ef4b6056484f5580f7d72fcf46fccf"> 955</a></span> <span class="preprocessor">#define EV_TIMEOUT 0x01</span></div>
<div class="line"><a name="l00956"></a><span class="lineno"> 956</span>  </div>
<div class="line"><a name="l00957"></a><span class="lineno"><a class="line" href="event_8h.html#a74bbaf2d529670cc0ab793497b41700f"> 957</a></span> <span class="preprocessor">#define EV_READ 0x02</span></div>
<div class="line"><a name="l00958"></a><span class="lineno"> 958</span>  </div>
<div class="line"><a name="l00959"></a><span class="lineno"><a class="line" href="event_8h.html#a2a31813fa3b26bf2d150512cbbf893f7"> 959</a></span> <span class="preprocessor">#define EV_WRITE 0x04</span></div>
<div class="line"><a name="l00960"></a><span class="lineno"> 960</span>  </div>
<div class="line"><a name="l00961"></a><span class="lineno"><a class="line" href="event_8h.html#a59b7e95284ac1a197969d42ee9441ece"> 961</a></span> <span class="preprocessor">#define EV_SIGNAL 0x08</span></div>
<div class="line"><a name="l00962"></a><span class="lineno"> 962</span>  </div>
<div class="line"><a name="l00968"></a><span class="lineno"><a class="line" href="event_8h.html#a3c4947a60eb6d09327c61f89135f9f37"> 968</a></span> <span class="preprocessor">#define EV_PERSIST 0x10</span></div>
<div class="line"><a name="l00969"></a><span class="lineno"> 969</span>  </div>
<div class="line"><a name="l00970"></a><span class="lineno"><a class="line" href="event_8h.html#a01084abbcdd3a58b4068359548a3ea71"> 970</a></span> <span class="preprocessor">#define EV_ET 0x20</span></div>
<div class="line"><a name="l00971"></a><span class="lineno"> 971</span>  </div>
<div class="line"><a name="l00979"></a><span class="lineno"><a class="line" href="event_8h.html#ac062d75b2bf9a961d893e3a71726bdff"> 979</a></span> <span class="preprocessor">#define EV_FINALIZE 0x40</span></div>
<div class="line"><a name="l00980"></a><span class="lineno"> 980</span>  </div>
<div class="line"><a name="l00988"></a><span class="lineno"><a class="line" href="event_8h.html#a98f643f9c9063a4cbf410f519eb61e55"> 988</a></span> <span class="preprocessor">#define EV_CLOSED 0x80</span></div>
<div class="line"><a name="l00989"></a><span class="lineno"> 989</span>  </div>
<div class="line"><a name="l00998"></a><span class="lineno"> 998</span> <span class="preprocessor">#define evtimer_assign(ev, b, cb, arg) \</span></div>
<div class="line"><a name="l00999"></a><span class="lineno"> 999</span> <span class="preprocessor"> event_assign((ev), (b), -1, 0, (cb), (arg))</span></div>
<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span> <span class="preprocessor">#define evtimer_new(b, cb, arg) event_new((b), -1, 0, (cb), (arg))</span></div>
<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> <span class="preprocessor">#define evtimer_add(ev, tv) event_add((ev), (tv))</span></div>
<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span> <span class="preprocessor">#define evtimer_del(ev) event_del(ev)</span></div>
<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span> <span class="preprocessor">#define evtimer_pending(ev, tv) event_pending((ev), EV_TIMEOUT, (tv))</span></div>
<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span> <span class="preprocessor">#define evtimer_initialized(ev) event_initialized(ev)</span></div>
<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>  </div>
<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> <span class="preprocessor">#define evsignal_add(ev, tv) event_add((ev), (tv))</span></div>
<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> <span class="preprocessor">#define evsignal_assign(ev, b, x, cb, arg) \</span></div>
<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> <span class="preprocessor"> event_assign((ev), (b), (x), EV_SIGNAL|EV_PERSIST, cb, (arg))</span></div>
<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span> <span class="preprocessor">#define evsignal_new(b, x, cb, arg) \</span></div>
<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span> <span class="preprocessor"> event_new((b), (x), EV_SIGNAL|EV_PERSIST, (cb), (arg))</span></div>
<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span> <span class="preprocessor">#define evsignal_del(ev) event_del(ev)</span></div>
<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span> <span class="preprocessor">#define evsignal_pending(ev, tv) event_pending((ev), EV_SIGNAL, (tv))</span></div>
<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span> <span class="preprocessor">#define evsignal_initialized(ev) event_initialized(ev)</span></div>
<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>  </div>
<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span> <span class="preprocessor">#define evuser_new(b, cb, arg) event_new((b), -1, 0, (cb), (arg))</span></div>
<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span> <span class="preprocessor">#define evuser_del(ev) event_del(ev)</span></div>
<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span> <span class="preprocessor">#define evuser_pending(ev, tv) event_pending((ev), 0, (tv))</span></div>
<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span> <span class="preprocessor">#define evuser_initialized(ev) event_initialized(ev)</span></div>
<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span> <span class="preprocessor">#define evuser_trigger(ev) event_active((ev), 0, 0)</span></div>
<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>  </div>
<div class="line"><a name="l01048"></a><span class="lineno"><a class="line" href="event_8h.html#aed2307f3d9b38e07cc10c2607322d758"> 1048</a></span> <span class="keyword">typedef</span> void (*<a class="code" href="event_8h.html#aed2307f3d9b38e07cc10c2607322d758">event_callback_fn</a>)(<a class="code" href="util_8h.html#a7ef0023565082a65020f6e56be59fd0b">evutil_socket_t</a>, short, <span class="keywordtype">void</span> *);</div>
<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>  </div>
<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span> <span class="keywordtype">void</span> *<a class="code" href="event_8h.html#aaf0b6ecbbc95137d7a6621f46670acad">event_self_cbarg</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>  </div>
<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span> <span class="keyword">struct </span><a class="code" href="structevent.html">event</a> *<a class="code" href="event_8h.html#a6cd300e5cd15601c5e4570b221b20397">event_new</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base, <a class="code" href="util_8h.html#a7ef0023565082a65020f6e56be59fd0b">evutil_socket_t</a> fd, <span class="keywordtype">short</span> events, <a class="code" href="event_8h.html#aed2307f3d9b38e07cc10c2607322d758">event_callback_fn</a> callback, <span class="keywordtype">void</span> *callback_arg);</div>
<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>  </div>
<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>  </div>
<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a3e49a8172e00ae82959dfe64684eda11">event_assign</a>(<span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *ev, <span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base, <a class="code" href="util_8h.html#a7ef0023565082a65020f6e56be59fd0b">evutil_socket_t</a> fd, <span class="keywordtype">short</span> events, <a class="code" href="event_8h.html#aed2307f3d9b38e07cc10c2607322d758">event_callback_fn</a> callback, <span class="keywordtype">void</span> *callback_arg);</div>
<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>  </div>
<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span> <span class="keywordtype">void</span> <a class="code" href="event_8h.html#a1f326019b65d319b2221b7e57d56c273">event_free</a>(<span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *);</div>
<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>  </div>
<div class="line"><a name="l01180"></a><span class="lineno"><a class="line" href="event_8h.html#a6f62afb6e295ee487ad947e4eec18332"> 1180</a></span> <span class="keyword">typedef</span> void (*<a class="code" href="event_8h.html#a6f62afb6e295ee487ad947e4eec18332">event_finalize_callback_fn</a>)(<span class="keyword">struct </span><a class="code" href="structevent.html">event</a> *, <span class="keywordtype">void</span> *);</div>
<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> <span class="keywordtype">int</span> event_finalize(<span class="keywordtype">unsigned</span>, <span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *, <a class="code" href="event_8h.html#a6f62afb6e295ee487ad947e4eec18332">event_finalize_callback_fn</a>);</div>
<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> <span class="keywordtype">int</span> event_free_finalize(<span class="keywordtype">unsigned</span>, <span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *, <a class="code" href="event_8h.html#a6f62afb6e295ee487ad947e4eec18332">event_finalize_callback_fn</a>);</div>
<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#ae4d40e572ad8310897ce06f9fe0f9062">event_base_once</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base, <a class="code" href="util_8h.html#a7ef0023565082a65020f6e56be59fd0b">evutil_socket_t</a> fd, <span class="keywordtype">short</span> events, <a class="code" href="event_8h.html#aed2307f3d9b38e07cc10c2607322d758">event_callback_fn</a> callback, <span class="keywordtype">void</span> *arg, <span class="keyword">const</span> <span class="keyword">struct</span> timeval *timeout);</div>
<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>  </div>
<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#ab0c85ebe9cf057be1aa17724c701b0c8">event_add</a>(<span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *ev, <span class="keyword">const</span> <span class="keyword">struct</span> timeval *timeout);</div>
<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>  </div>
<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a6d3aae1a8b2c0002e5744fb54ba4fe64">event_remove_timer</a>(<span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *ev);</div>
<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>  </div>
<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a2ffc10a652c67bea16b0a71f7d5a44dc">event_del</a>(<span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *ev);</div>
<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>  </div>
<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a54ae25b313b15e6038b5dd87c740e39e">event_del_noblock</a>(<span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *ev);</div>
<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a8236f5e7e9d845cd127e768b2747df9c">event_del_block</a>(<span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *ev);</div>
<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>  </div>
<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span> <span class="keywordtype">void</span> <a class="code" href="event_8h.html#a31d9440cf2b7010e32a05a2142a91525">event_active</a>(<span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *ev, <span class="keywordtype">int</span> res, <span class="keywordtype">short</span> ncalls);</div>
<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>  </div>
<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a9b1687396305898af018c74e63486eb5">event_pending</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *ev, <span class="keywordtype">short</span> events, <span class="keyword">struct</span> timeval *tv);</div>
<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>  </div>
<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span> <span class="keyword">struct </span><a class="code" href="structevent.html">event</a> *<a class="code" href="event_8h.html#a23276914af0b2527951cc7c47b46f00b">event_base_get_running_event</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base);</div>
<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>  </div>
<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a85b94b111b8aa7fb480fc2f9da7f8e18">event_initialized</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *ev);</div>
<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>  </div>
<div class="line"><a name="l01376"></a><span class="lineno"><a class="line" href="event_8h.html#a69cc368a9137187726ef371a06f9cc9f"> 1376</a></span> <span class="preprocessor">#define event_get_signal(ev) ((int)event_get_fd(ev))</span></div>
<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>  </div>
<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span> <a class="code" href="util_8h.html#a7ef0023565082a65020f6e56be59fd0b">evutil_socket_t</a> <a class="code" href="event_8h.html#a4f63589ebe3e0d4c9e20447f96d343b2">event_get_fd</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *ev);</div>
<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>  </div>
<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span> <span class="keyword">struct </span><a class="code" href="structevent__base.html">event_base</a> *<a class="code" href="event_8h.html#ab90af034dd2638511f483bd25effdc77">event_get_base</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *ev);</div>
<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>  </div>
<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span> <span class="keywordtype">short</span> <a class="code" href="event_8h.html#a70989121937ecb71358a2d76be772d51">event_get_events</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *ev);</div>
<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>  </div>
<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span> <a class="code" href="event_8h.html#aed2307f3d9b38e07cc10c2607322d758">event_callback_fn</a> <a class="code" href="event_8h.html#a6e325a315660638135385dc3b608bf85">event_get_callback</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *ev);</div>
<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>  </div>
<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span> <span class="keywordtype">void</span> *<a class="code" href="event_8h.html#ad868b16c4dc7450e49ba277b9ee7b467">event_get_callback_arg</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *ev);</div>
<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>  </div>
<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#abbc9ca70c2b59b3c1b5767b7675920c3">event_get_priority</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *ev);</div>
<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>  </div>
<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span> <span class="keywordtype">void</span> <a class="code" href="event_8h.html#a6ddcda6db7bd3fc1e0f635d60e145a03">event_get_assignment</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *<a class="code" href="structevent.html">event</a>,</div>
<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>  <span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> **base_out, <a class="code" href="util_8h.html#a7ef0023565082a65020f6e56be59fd0b">evutil_socket_t</a> *fd_out, <span class="keywordtype">short</span> *events_out,</div>
<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>  <a class="code" href="event_8h.html#aed2307f3d9b38e07cc10c2607322d758">event_callback_fn</a> *callback_out, <span class="keywordtype">void</span> **arg_out);</div>
<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>  </div>
<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span> <span class="keywordtype">size_t</span> <a class="code" href="event_8h.html#a0f93db0db7e74f9ae173e1766415dd56">event_get_struct_event_size</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>  </div>
<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="event_8h.html#a328e99de6281ce1645935835e44341b6">event_get_version</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>  </div>
<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span> ev_uint32_t <a class="code" href="event_8h.html#a578ddddcc39d197630e7909b7da443e3">event_get_version_number</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>  </div>
<div class="line"><a name="l01471"></a><span class="lineno"><a class="line" href="event_8h.html#aad00c7d4ddbd6b590c15861a2e767182"> 1471</a></span> <span class="preprocessor">#define LIBEVENT_VERSION EVENT__VERSION</span></div>
<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>  </div>
<div class="line"><a name="l01474"></a><span class="lineno"><a class="line" href="event_8h.html#a8a9c8021651a2d8d7946083281279586"> 1474</a></span> <span class="preprocessor">#define LIBEVENT_VERSION_NUMBER EVENT__NUMERIC_VERSION</span></div>
<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>  </div>
<div class="line"><a name="l01477"></a><span class="lineno"><a class="line" href="event_8h.html#ad74f7bf73ff985bfaf61c462cbba022f"> 1477</a></span> <span class="preprocessor">#define EVENT_MAX_PRIORITIES 256</span></div>
<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>  </div>
<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a289e44ce22c816060bf7b7bfe38720b9">event_base_priority_init</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *eb, <span class="keywordtype">int</span> npriorities);</div>
<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>  </div>
<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a3c91bec6e27bf2e26e8ecbb286787cc5">event_base_get_npriorities</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *eb);</div>
<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>  </div>
<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a11a800dce1fe61de5e2506aaf603c47f">event_priority_set</a>(<span class="keyword">struct</span> <a class="code" href="structevent.html">event</a> *ev, <span class="keywordtype">int</span> priority);</div>
<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>  </div>
<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span> <span class="keyword">const</span> <span class="keyword">struct </span>timeval *<a class="code" href="event_8h.html#a46b388babfda66dcb897c9e4dbd233b1">event_base_init_common_timeout</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base,</div>
<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>  <span class="keyword">const</span> <span class="keyword">struct</span> timeval *duration);</div>
<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>  </div>
<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span> <span class="preprocessor">#if !defined(EVENT__DISABLE_MM_REPLACEMENT) || defined(EVENT_IN_DOXYGEN_)</span></div>
<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>  </div>
<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span> <span class="keywordtype">void</span> <a class="code" href="event_8h.html#a9bb71feea97288bc15d2fba3dccd46bf">event_set_mem_functions</a>(</div>
<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>  <span class="keywordtype">void</span> *(*malloc_fn)(<span class="keywordtype">size_t</span> sz),</div>
<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>  <span class="keywordtype">void</span> *(*realloc_fn)(<span class="keywordtype">void</span> *ptr, <span class="keywordtype">size_t</span> sz),</div>
<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span>  <span class="keywordtype">void</span> (*free_fn)(<span class="keywordtype">void</span> *ptr));</div>
<div class="line"><a name="l01582"></a><span class="lineno"><a class="line" href="event_8h.html#ade387a9a39bbbdf40ff20b4d977ec6ae"> 1582</a></span> <span class="preprocessor">#define EVENT_SET_MEM_FUNCTIONS_IMPLEMENTED</span></div>
<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>  </div>
<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span> <span class="keywordtype">void</span> <a class="code" href="event_8h.html#ae3ed8b33f9e0d797615c2f86ff30f5fb">event_base_dump_events</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base, FILE *output);</div>
<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>  </div>
<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>  </div>
<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span> <span class="keywordtype">void</span> <a class="code" href="event_8h.html#a092013616b4636c74e889b0b015cb75e">event_base_active_by_fd</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base, <a class="code" href="util_8h.html#a7ef0023565082a65020f6e56be59fd0b">evutil_socket_t</a> fd, <span class="keywordtype">short</span> events);</div>
<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>  </div>
<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span> <span class="keywordtype">void</span> <a class="code" href="event_8h.html#a4bca4d24a15bef084bf066faca8a43d2">event_base_active_by_signal</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base, <span class="keywordtype">int</span> sig);</div>
<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>  </div>
<div class="line"><a name="l01627"></a><span class="lineno"><a class="line" href="event_8h.html#a61f656b17425f17ed857b96d45fc6268"> 1627</a></span> <span class="keyword">typedef</span> int (*<a class="code" href="event_8h.html#a61f656b17425f17ed857b96d45fc6268">event_base_foreach_event_cb</a>)(<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structevent__base.html">event_base</a> *, <span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structevent.html">event</a> *, <span class="keywordtype">void</span> *);</div>
<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>  </div>
<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a7d5c38711c6a72545b939cc375468f79">event_base_foreach_event</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base, <a class="code" href="event_8h.html#a61f656b17425f17ed857b96d45fc6268">event_base_foreach_event_cb</a> fn, <span class="keywordtype">void</span> *arg);</div>
<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>  </div>
<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>  </div>
<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#a0fbd35d624f1c865329a2a388afba3fd">event_base_gettimeofday_cached</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base,</div>
<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>  <span class="keyword">struct</span> timeval *tv);</div>
<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>  </div>
<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span> <span class="keywordtype">int</span> <a class="code" href="event_8h.html#ae920425b48421c3cb7cb5e0802e4af9d">event_base_update_cache_time</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base);</div>
<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>  </div>
<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span> <span class="keywordtype">void</span> <a class="code" href="event_8h.html#aaed24b9ff1f5b137ea2e2cc6a2bf8d1f">libevent_global_shutdown</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>  </div>
<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span> }</div>
<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>  </div>
<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span> <span class="preprocessor">#endif </span><span class="comment">/* EVENT2_EVENT_H_INCLUDED_ */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aevent_8h_html_a1f326019b65d319b2221b7e57d56c273"><div class="ttname"><a href="event_8h.html#a1f326019b65d319b2221b7e57d56c273">event_free</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void event_free(struct event *)</div><div class="ttdoc">Deallocate a struct event * returned by event_new().</div></div>
<div class="ttc" id="aevent_8h_html_a138b72aa85ec5c344714867204ed3d3d"><div class="ttname"><a href="event_8h.html#a138b72aa85ec5c344714867204ed3d3d">event_base_get_signal_method</a></div><div class="ttdeci">const EVENT2_EXPORT_SYMBOL char * event_base_get_signal_method(const struct event_base *eb)</div><div class="ttdoc">Get the kernel signal handling mechanism used by Libevent.</div></div>
<div class="ttc" id="aevent_8h_html_abb799b636f0d3aab6ca17426d88473cf"><div class="ttname"><a href="event_8h.html#abb799b636f0d3aab6ca17426d88473cf">event_fatal_cb</a></div><div class="ttdeci">void(* event_fatal_cb)(int err)</div><div class="ttdoc">A function to be called if Libevent encounters a fatal internal error.</div><div class="ttdef"><b>Definition:</b> event.h:773</div></div>
<div class="ttc" id="aevent_8h_html_a3c91bec6e27bf2e26e8ecbb286787cc5"><div class="ttname"><a href="event_8h.html#a3c91bec6e27bf2e26e8ecbb286787cc5">event_base_get_npriorities</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_base_get_npriorities(struct event_base *eb)</div><div class="ttdoc">Get the number of different event priorities.</div></div>
<div class="ttc" id="aevent_8h_html_aced890aa77dac1669325f74a27584f03"><div class="ttname"><a href="event_8h.html#aced890aa77dac1669325f74a27584f03">event_base_get_features</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_base_get_features(const struct event_base *base)</div><div class="ttdoc">Return a bitmask of the features implemented by an event base.</div></div>
<div class="ttc" id="aevent_8h_html_ae920425b48421c3cb7cb5e0802e4af9d"><div class="ttname"><a href="event_8h.html#ae920425b48421c3cb7cb5e0802e4af9d">event_base_update_cache_time</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_base_update_cache_time(struct event_base *base)</div><div class="ttdoc">Update cached_tv in the 'base' to the current time.</div></div>
<div class="ttc" id="aevent_8h_html_a092013616b4636c74e889b0b015cb75e"><div class="ttname"><a href="event_8h.html#a092013616b4636c74e889b0b015cb75e">event_base_active_by_fd</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void event_base_active_by_fd(struct event_base *base, evutil_socket_t fd, short events)</div><div class="ttdoc">Activates all pending events for the given fd and event mask.</div></div>
<div class="ttc" id="aevent_8h_html_a6cd300e5cd15601c5e4570b221b20397"><div class="ttname"><a href="event_8h.html#a6cd300e5cd15601c5e4570b221b20397">event_new</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct event * event_new(struct event_base *base, evutil_socket_t fd, short events, event_callback_fn callback, void *callback_arg)</div><div class="ttdoc">Allocate and assign a new event structure, ready to be added.</div></div>
<div class="ttc" id="aevent_8h_html_a2ffc10a652c67bea16b0a71f7d5a44dc"><div class="ttname"><a href="event_8h.html#a2ffc10a652c67bea16b0a71f7d5a44dc">event_del</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_del(struct event *ev)</div><div class="ttdoc">Remove an event from the set of monitored events.</div></div>
<div class="ttc" id="aevent_8h_html_a9bb71feea97288bc15d2fba3dccd46bf"><div class="ttname"><a href="event_8h.html#a9bb71feea97288bc15d2fba3dccd46bf">event_set_mem_functions</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void event_set_mem_functions(void *(*malloc_fn)(size_t sz), void *(*realloc_fn)(void *ptr, size_t sz), void(*free_fn)(void *ptr))</div><div class="ttdoc">Override the functions that Libevent uses for memory management.</div></div>
<div class="ttc" id="aevent_8h_html_a3e49a8172e00ae82959dfe64684eda11"><div class="ttname"><a href="event_8h.html#a3e49a8172e00ae82959dfe64684eda11">event_assign</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_assign(struct event *ev, struct event_base *base, evutil_socket_t fd, short events, event_callback_fn callback, void *callback_arg)</div><div class="ttdoc">Prepare a new, already-allocated event structure to be added.</div></div>
<div class="ttc" id="aevent_8h_html_a472425045a342e48429e408eaeb81d18"><div class="ttname"><a href="event_8h.html#a472425045a342e48429e408eaeb81d18">event_config_set_num_cpus_hint</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_config_set_num_cpus_hint(struct event_config *cfg, int cpus)</div><div class="ttdoc">Records a hint for the number of CPUs in the system.</div></div>
<div class="ttc" id="aevent_8h_html_ae4d40e572ad8310897ce06f9fe0f9062"><div class="ttname"><a href="event_8h.html#ae4d40e572ad8310897ce06f9fe0f9062">event_base_once</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_base_once(struct event_base *base, evutil_socket_t fd, short events, event_callback_fn callback, void *arg, const struct timeval *timeout)</div><div class="ttdoc">Schedule a one-time event.</div></div>
<div class="ttc" id="aevent_8h_html_aeb08f9ff880ff8a07eb623124f48f979"><div class="ttname"><a href="event_8h.html#aeb08f9ff880ff8a07eb623124f48f979">event_config_set_max_dispatch_interval</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_config_set_max_dispatch_interval(struct event_config *cfg, const struct timeval *max_interval, int max_callbacks, int min_priority)</div><div class="ttdoc">Record an interval and/or a number of callbacks after which the event base should check for new event...</div></div>
<div class="ttc" id="aevent_8h_html_abbc9ca70c2b59b3c1b5767b7675920c3"><div class="ttname"><a href="event_8h.html#abbc9ca70c2b59b3c1b5767b7675920c3">event_get_priority</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_get_priority(const struct event *ev)</div><div class="ttdoc">Return the priority of an event.</div></div>
<div class="ttc" id="aevent_8h_html_ae9e42b61a7e8465b7c897432c4ddcabd"><div class="ttname"><a href="event_8h.html#ae9e42b61a7e8465b7c897432c4ddcabd">event_config_set_flag</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_config_set_flag(struct event_config *cfg, int flag)</div><div class="ttdoc">Sets one or more flags to configure what parts of the eventual event_base will be initialized,...</div></div>
<div class="ttc" id="aevent_8h_html_a7abb8da4e334086319949997fd51c799"><div class="ttname"><a href="event_8h.html#a7abb8da4e334086319949997fd51c799">event_get_supported_methods</a></div><div class="ttdeci">const EVENT2_EXPORT_SYMBOL char ** event_get_supported_methods(void)</div><div class="ttdoc">Gets all event notification mechanisms supported by Libevent.</div></div>
<div class="ttc" id="aevent_8h_html_a0c624a8830f69b32ee11faabc8ebb99a"><div class="ttname"><a href="event_8h.html#a0c624a8830f69b32ee11faabc8ebb99a">event_gettime_monotonic</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_gettime_monotonic(struct event_base *base, struct timeval *tp)</div><div class="ttdoc">Query the current monotonic time from the timer for a struct event_base.</div></div>
<div class="ttc" id="aevent_8h_html_a1d0efefe738406049a7bd71e2e59ccfb"><div class="ttname"><a href="event_8h.html#a1d0efefe738406049a7bd71e2e59ccfb">event_set_fatal_callback</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void event_set_fatal_callback(event_fatal_cb cb)</div><div class="ttdoc">Override Libevent's behavior in the event of a fatal internal error.</div></div>
<div class="ttc" id="aevent_8h_html_a37441a3defac55b5d2513521964b2af5"><div class="ttname"><a href="event_8h.html#a37441a3defac55b5d2513521964b2af5">event_enable_debug_mode</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void event_enable_debug_mode(void)</div><div class="ttdoc">Enable some relatively expensive debugging checks in Libevent that would normally be turned off.</div></div>
<div class="ttc" id="aevent_8h_html_a7f05aabb4fbcd2ba676bb6ba92f21630"><div class="ttname"><a href="event_8h.html#a7f05aabb4fbcd2ba676bb6ba92f21630">event_reinit</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_reinit(struct event_base *base)</div><div class="ttdoc">Reinitialize the event base after a fork.</div></div>
<div class="ttc" id="aevent_8h_html_a864798e5b3c6aa8d2f9e9c5035a3e6da"><div class="ttname"><a href="event_8h.html#a864798e5b3c6aa8d2f9e9c5035a3e6da">event_base_new_with_config</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct event_base * event_base_new_with_config(const struct event_config *cfg)</div><div class="ttdoc">Initialize the event API.</div></div>
<div class="ttc" id="astructevent__base_html"><div class="ttname"><a href="structevent__base.html">event_base</a></div><div class="ttdoc">Structure to hold information and state for a Libevent dispatch loop.</div><div class="ttdef"><b>Definition:</b> event.h:219</div></div>
<div class="ttc" id="aevent_8h_html_acfef69af45abee54725f40f7f29986c5ac1302f72251168137258335e945e2ae5"><div class="ttname"><a href="event_8h.html#acfef69af45abee54725f40f7f29986c5ac1302f72251168137258335e945e2ae5">EVENT_BASE_FLAG_NOLOCK</a></div><div class="ttdeci">@ EVENT_BASE_FLAG_NOLOCK</div><div class="ttdoc">Do not allocate a lock for the event base, even if we have locking set up.</div><div class="ttdef"><b>Definition:</b> event.h:548</div></div>
<div class="ttc" id="aevent_8h_html_a6e325a315660638135385dc3b608bf85"><div class="ttname"><a href="event_8h.html#a6e325a315660638135385dc3b608bf85">event_get_callback</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL event_callback_fn event_get_callback(const struct event *ev)</div><div class="ttdoc">Return the callback assigned to an event.</div></div>
<div class="ttc" id="astructevent_html"><div class="ttname"><a href="structevent.html">event</a></div><div class="ttdoc">Structure to represent a single event.</div><div class="ttdef"><b>Definition:</b> event.h:276</div></div>
<div class="ttc" id="aevent_8h_html_a385fb6f81ab73f9c95d77b7179f780e0"><div class="ttname"><a href="event_8h.html#a385fb6f81ab73f9c95d77b7179f780e0">event_base_free_nofinalize</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void event_base_free_nofinalize(struct event_base *)</div><div class="ttdoc">As event_base_free, but do not run finalizers.</div></div>
<div class="ttc" id="aevent_8h_html_a6ddcda6db7bd3fc1e0f635d60e145a03"><div class="ttname"><a href="event_8h.html#a6ddcda6db7bd3fc1e0f635d60e145a03">event_get_assignment</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void event_get_assignment(const struct event *event, struct event_base **base_out, evutil_socket_t *fd_out, short *events_out, event_callback_fn *callback_out, void **arg_out)</div><div class="ttdoc">Extract all of arguments given to construct a given event.</div></div>
<div class="ttc" id="aevent_8h_html_acfef69af45abee54725f40f7f29986c5a4ffb2510ab533d7156f412ee4f0c08ea"><div class="ttname"><a href="event_8h.html#acfef69af45abee54725f40f7f29986c5a4ffb2510ab533d7156f412ee4f0c08ea">EVENT_BASE_FLAG_STARTUP_IOCP</a></div><div class="ttdeci">@ EVENT_BASE_FLAG_STARTUP_IOCP</div><div class="ttdoc">Windows only: enable the IOCP dispatcher at startup.</div><div class="ttdef"><b>Definition:</b> event.h:560</div></div>
<div class="ttc" id="aevent_8h_html_a11a800dce1fe61de5e2506aaf603c47f"><div class="ttname"><a href="event_8h.html#a11a800dce1fe61de5e2506aaf603c47f">event_priority_set</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_priority_set(struct event *ev, int priority)</div><div class="ttdoc">Assign a priority to an event.</div></div>
<div class="ttc" id="aevent_8h_html_a578ddddcc39d197630e7909b7da443e3"><div class="ttname"><a href="event_8h.html#a578ddddcc39d197630e7909b7da443e3">event_get_version_number</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL ev_uint32_t event_get_version_number(void)</div><div class="ttdoc">Return a numeric representation of Libevent's version.</div></div>
<div class="ttc" id="aevent_8h_html_a185f44c610d7ee21ecba720561b2e09c"><div class="ttname"><a href="event_8h.html#a185f44c610d7ee21ecba720561b2e09c">event_log_cb</a></div><div class="ttdeci">void(* event_log_cb)(int severity, const char *msg)</div><div class="ttdoc">A callback function used to intercept Libevent's log messages.</div><div class="ttdef"><b>Definition:</b> event.h:754</div></div>
<div class="ttc" id="aevent_8h_html_a0f93db0db7e74f9ae173e1766415dd56"><div class="ttname"><a href="event_8h.html#a0f93db0db7e74f9ae173e1766415dd56">event_get_struct_event_size</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL size_t event_get_struct_event_size(void)</div><div class="ttdoc">Return the size of struct event that the Libevent library was compiled with.</div></div>
<div class="ttc" id="aevent_8h_html_ae7da61aef13e27a3047151b696b44c80a7a6f2de86c09b92aa175f950190bf706"><div class="ttname"><a href="event_8h.html#ae7da61aef13e27a3047151b696b44c80a7a6f2de86c09b92aa175f950190bf706">EV_FEATURE_O1</a></div><div class="ttdeci">@ EV_FEATURE_O1</div><div class="ttdoc">Require an event method where having one event triggered among many is [approximately] an O(1) operat...</div><div class="ttdef"><b>Definition:</b> event.h:520</div></div>
<div class="ttc" id="aevent_8h_html_a70989121937ecb71358a2d76be772d51"><div class="ttname"><a href="event_8h.html#a70989121937ecb71358a2d76be772d51">event_get_events</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL short event_get_events(const struct event *ev)</div><div class="ttdoc">Return the events (EV_READ, EV_WRITE, etc) assigned to an event.</div></div>
<div class="ttc" id="aevent_8h_html_a85b94b111b8aa7fb480fc2f9da7f8e18"><div class="ttname"><a href="event_8h.html#a85b94b111b8aa7fb480fc2f9da7f8e18">event_initialized</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_initialized(const struct event *ev)</div><div class="ttdoc">Test if an event structure might be initialized.</div></div>
<div class="ttc" id="aevent_8h_html_a76f3b4191e43c8b4758b99da761c858e"><div class="ttname"><a href="event_8h.html#a76f3b4191e43c8b4758b99da761c858e">event_config_new</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct event_config * event_config_new(void)</div><div class="ttdoc">Allocates a new event configuration object.</div></div>
<div class="ttc" id="aevent_8h_html_acfef69af45abee54725f40f7f29986c5a86d9f5574e29964187bafe245b211447"><div class="ttname"><a href="event_8h.html#acfef69af45abee54725f40f7f29986c5a86d9f5574e29964187bafe245b211447">EVENT_BASE_FLAG_USE_SIGNALFD</a></div><div class="ttdeci">@ EVENT_BASE_FLAG_USE_SIGNALFD</div><div class="ttdoc">Use signalfd(2) to handle signals over sigaction/signal.</div><div class="ttdef"><b>Definition:</b> event.h:606</div></div>
<div class="ttc" id="aevent_8h_html_ad868b16c4dc7450e49ba277b9ee7b467"><div class="ttname"><a href="event_8h.html#ad868b16c4dc7450e49ba277b9ee7b467">event_get_callback_arg</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void * event_get_callback_arg(const struct event *ev)</div><div class="ttdoc">Return the callback argument assigned to an event.</div></div>
<div class="ttc" id="aevent_8h_html_a31d9440cf2b7010e32a05a2142a91525"><div class="ttname"><a href="event_8h.html#a31d9440cf2b7010e32a05a2142a91525">event_active</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void event_active(struct event *ev, int res, short ncalls)</div><div class="ttdoc">Make an event active.</div></div>
<div class="ttc" id="aevent_8h_html_ae7da61aef13e27a3047151b696b44c80"><div class="ttname"><a href="event_8h.html#ae7da61aef13e27a3047151b696b44c80">event_method_feature</a></div><div class="ttdeci">event_method_feature</div><div class="ttdoc">A flag used to describe which features an event_base (must) provide.</div><div class="ttdef"><b>Definition:</b> event.h:513</div></div>
<div class="ttc" id="aevent_8h_html_a6f62afb6e295ee487ad947e4eec18332"><div class="ttname"><a href="event_8h.html#a6f62afb6e295ee487ad947e4eec18332">event_finalize_callback_fn</a></div><div class="ttdeci">void(* event_finalize_callback_fn)(struct event *, void *)</div><div class="ttdoc">Callback type for event_finalize and event_free_finalize().</div><div class="ttdef"><b>Definition:</b> event.h:1180</div></div>
<div class="ttc" id="aevent_8h_html_a654b3b2c5923a9c0620907701383f6dd"><div class="ttname"><a href="event_8h.html#a654b3b2c5923a9c0620907701383f6dd">event_base_got_exit</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_base_got_exit(struct event_base *eb)</div><div class="ttdoc">Checks if the event loop was told to exit by event_base_loopexit().</div></div>
<div class="ttc" id="aevent_8h_html_a9cf1a991dcad465adf4330a79576b148"><div class="ttname"><a href="event_8h.html#a9cf1a991dcad465adf4330a79576b148">event_base_get_max_events</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_base_get_max_events(struct event_base *eb, unsigned int flags, int clear)</div><div class="ttdoc">Get the maximum number of events in a given event_base as specified in the flags.</div></div>
<div class="ttc" id="aevent_8h_html_aaed24b9ff1f5b137ea2e2cc6a2bf8d1f"><div class="ttname"><a href="event_8h.html#aaed24b9ff1f5b137ea2e2cc6a2bf8d1f">libevent_global_shutdown</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void libevent_global_shutdown(void)</div><div class="ttdoc">Release up all globally-allocated resources allocated by Libevent.</div></div>
<div class="ttc" id="aevent_8h_html_a328e99de6281ce1645935835e44341b6"><div class="ttname"><a href="event_8h.html#a328e99de6281ce1645935835e44341b6">event_get_version</a></div><div class="ttdeci">const EVENT2_EXPORT_SYMBOL char * event_get_version(void)</div><div class="ttdoc">Get the Libevent version.</div></div>
<div class="ttc" id="aevent_8h_html_a4f63589ebe3e0d4c9e20447f96d343b2"><div class="ttname"><a href="event_8h.html#a4f63589ebe3e0d4c9e20447f96d343b2">event_get_fd</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL evutil_socket_t event_get_fd(const struct event *ev)</div><div class="ttdoc">Get the socket or signal assigned to an event, or -1 if the event has no socket.</div></div>
<div class="ttc" id="aevent_8h_html_ae7da61aef13e27a3047151b696b44c80ab407cae60af925dba44bd66e56e5f897"><div class="ttname"><a href="event_8h.html#ae7da61aef13e27a3047151b696b44c80ab407cae60af925dba44bd66e56e5f897">EV_FEATURE_ET</a></div><div class="ttdeci">@ EV_FEATURE_ET</div><div class="ttdoc">Require an event method that allows edge-triggered events with EV_ET.</div><div class="ttdef"><b>Definition:</b> event.h:515</div></div>
<div class="ttc" id="aevent_8h_html_a54ae25b313b15e6038b5dd87c740e39e"><div class="ttname"><a href="event_8h.html#a54ae25b313b15e6038b5dd87c740e39e">event_del_noblock</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_del_noblock(struct event *ev)</div><div class="ttdoc">As event_del(), but never blocks while the event's callback is running in another thread,...</div></div>
<div class="ttc" id="aevent_8h_html_ad7917192d1f78884de03a8777013fd1c"><div class="ttname"><a href="event_8h.html#ad7917192d1f78884de03a8777013fd1c">event_config_free</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void event_config_free(struct event_config *cfg)</div><div class="ttdoc">Deallocates all memory associated with an event configuration object.</div></div>
<div class="ttc" id="aevent_8h_html_ae0910900c306cef32e2623272c7b7cb0"><div class="ttname"><a href="event_8h.html#ae0910900c306cef32e2623272c7b7cb0">event_base_get_method</a></div><div class="ttdeci">const EVENT2_EXPORT_SYMBOL char * event_base_get_method(const struct event_base *eb)</div><div class="ttdoc">Get the kernel event notification mechanism used by Libevent.</div></div>
<div class="ttc" id="aevent_8h_html_acfef69af45abee54725f40f7f29986c5"><div class="ttname"><a href="event_8h.html#acfef69af45abee54725f40f7f29986c5">event_base_config_flag</a></div><div class="ttdeci">event_base_config_flag</div><div class="ttdoc">A flag passed to event_config_set_flag().</div><div class="ttdef"><b>Definition:</b> event.h:541</div></div>
<div class="ttc" id="aevent_8h_html_ab76526f5bcd7b05d63f38fca439d7492"><div class="ttname"><a href="event_8h.html#ab76526f5bcd7b05d63f38fca439d7492">event_config_require_features</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_config_require_features(struct event_config *cfg, int feature)</div><div class="ttdoc">Enters a required event method feature that the application demands.</div></div>
<div class="ttc" id="aevent_8h_html_ae3ed8b33f9e0d797615c2f86ff30f5fb"><div class="ttname"><a href="event_8h.html#ae3ed8b33f9e0d797615c2f86ff30f5fb">event_base_dump_events</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void event_base_dump_events(struct event_base *base, FILE *output)</div><div class="ttdoc">Writes a human-readable description of all inserted and/or active events to a provided stdio stream.</div></div>
<div class="ttc" id="aevent_8h_html_aaf0b6ecbbc95137d7a6621f46670acad"><div class="ttname"><a href="event_8h.html#aaf0b6ecbbc95137d7a6621f46670acad">event_self_cbarg</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void * event_self_cbarg(void)</div><div class="ttdoc">Return a value used to specify that the event itself must be used as the callback argument.</div></div>
<div class="ttc" id="aevent_8h_html_a46b388babfda66dcb897c9e4dbd233b1"><div class="ttname"><a href="event_8h.html#a46b388babfda66dcb897c9e4dbd233b1">event_base_init_common_timeout</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL const struct timeval * event_base_init_common_timeout(struct event_base *base, const struct timeval *duration)</div><div class="ttdoc">Prepare an event_base to use a large number of timeouts with the same duration.</div></div>
<div class="ttc" id="aevent_8h_html_acd7da32086d1e37008e7c76c9ea54fc4"><div class="ttname"><a href="event_8h.html#acd7da32086d1e37008e7c76c9ea54fc4">event_base_loop</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_base_loop(struct event_base *eb, int flags)</div><div class="ttdoc">Wait for events to become active, and run their callbacks.</div></div>
<div class="ttc" id="aevent_8h_html_a4bca4d24a15bef084bf066faca8a43d2"><div class="ttname"><a href="event_8h.html#a4bca4d24a15bef084bf066faca8a43d2">event_base_active_by_signal</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void event_base_active_by_signal(struct event_base *base, int sig)</div><div class="ttdoc">Activates all pending signals with a given signal number.</div></div>
<div class="ttc" id="aevent_8h_html_a289e44ce22c816060bf7b7bfe38720b9"><div class="ttname"><a href="event_8h.html#a289e44ce22c816060bf7b7bfe38720b9">event_base_priority_init</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_base_priority_init(struct event_base *eb, int npriorities)</div><div class="ttdoc">Set the number of different event priorities.</div></div>
<div class="ttc" id="aevent_8h_html_a8236f5e7e9d845cd127e768b2747df9c"><div class="ttname"><a href="event_8h.html#a8236f5e7e9d845cd127e768b2747df9c">event_del_block</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_del_block(struct event *ev)</div><div class="ttdoc">As event_del(), but always blocks while the event's callback is running in another thread,...</div></div>
<div class="ttc" id="aevent_8h_html_acfef69af45abee54725f40f7f29986c5acceb45f3098787247044929f92f4296e"><div class="ttname"><a href="event_8h.html#acfef69af45abee54725f40f7f29986c5acceb45f3098787247044929f92f4296e">EVENT_BASE_FLAG_EPOLL_USE_CHANGELIST</a></div><div class="ttdeci">@ EVENT_BASE_FLAG_EPOLL_USE_CHANGELIST</div><div class="ttdoc">If we are using the epoll backend, this flag says that it is safe to use Libevent's internal change-l...</div><div class="ttdef"><b>Definition:</b> event.h:580</div></div>
<div class="ttc" id="aevent_8h_html_a67ba4db4b6e7467b3412219530603e60"><div class="ttname"><a href="event_8h.html#a67ba4db4b6e7467b3412219530603e60">event_base_loopexit</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_base_loopexit(struct event_base *eb, const struct timeval *tv)</div><div class="ttdoc">Exit the event loop after the specified time.</div></div>
<div class="ttc" id="aevent_8h_html_a1347923dccea548c036ccc7614c5b595"><div class="ttname"><a href="event_8h.html#a1347923dccea548c036ccc7614c5b595">event_debug_unassign</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void event_debug_unassign(struct event *)</div><div class="ttdoc">When debugging mode is enabled, informs Libevent that an event should no longer be considered as assi...</div></div>
<div class="ttc" id="aevent_8h_html_a23276914af0b2527951cc7c47b46f00b"><div class="ttname"><a href="event_8h.html#a23276914af0b2527951cc7c47b46f00b">event_base_get_running_event</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct event * event_base_get_running_event(struct event_base *base)</div><div class="ttdoc">If called from within the callback for an event, returns that event.</div></div>
<div class="ttc" id="aevent_8h_html_a91f9deb12c37f2ff586e65e8b9a46641"><div class="ttname"><a href="event_8h.html#a91f9deb12c37f2ff586e65e8b9a46641">event_base_free</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void event_base_free(struct event_base *eb)</div><div class="ttdoc">Deallocate all memory associated with an event_base, and free the base.</div></div>
<div class="ttc" id="aevent_8h_html_a9b1687396305898af018c74e63486eb5"><div class="ttname"><a href="event_8h.html#a9b1687396305898af018c74e63486eb5">event_pending</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_pending(const struct event *ev, short events, struct timeval *tv)</div><div class="ttdoc">Checks if a specific event is pending or scheduled.</div></div>
<div class="ttc" id="astructevent__config_html"><div class="ttname"><a href="structevent__config.html">event_config</a></div><div class="ttdoc">Configuration for an event_base.</div><div class="ttdef"><b>Definition:</b> event.h:295</div></div>
<div class="ttc" id="aevent_8h_html_a6d3aae1a8b2c0002e5744fb54ba4fe64"><div class="ttname"><a href="event_8h.html#a6d3aae1a8b2c0002e5744fb54ba4fe64">event_remove_timer</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_remove_timer(struct event *ev)</div><div class="ttdoc">Remove a timer from a pending event without removing the event itself.</div></div>
<div class="ttc" id="aevent_8h_html_acfef69af45abee54725f40f7f29986c5af6080f1d7c5067868cbc749d1cfe56e9"><div class="ttname"><a href="event_8h.html#acfef69af45abee54725f40f7f29986c5af6080f1d7c5067868cbc749d1cfe56e9">EVENT_BASE_FLAG_PRECISE_TIMER</a></div><div class="ttdeci">@ EVENT_BASE_FLAG_PRECISE_TIMER</div><div class="ttdoc">Ordinarily, Libevent implements its time and timeout code using the fastest monotonic timer that we h...</div><div class="ttdef"><b>Definition:</b> event.h:587</div></div>
<div class="ttc" id="aevent_8h_html_a19d60cb72a1af398247f40e92cf07056"><div class="ttname"><a href="event_8h.html#a19d60cb72a1af398247f40e92cf07056">event_base_dispatch</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_base_dispatch(struct event_base *base)</div><div class="ttdoc">Event dispatching loop.</div></div>
<div class="ttc" id="aevent_8h_html_ae7da61aef13e27a3047151b696b44c80af28b206cf4665dacc2c6bf09446e29b7"><div class="ttname"><a href="event_8h.html#ae7da61aef13e27a3047151b696b44c80af28b206cf4665dacc2c6bf09446e29b7">EV_FEATURE_EARLY_CLOSE</a></div><div class="ttdeci">@ EV_FEATURE_EARLY_CLOSE</div><div class="ttdoc">Require an event method that allows you to use EV_CLOSED to detect connection close without the neces...</div><div class="ttdef"><b>Definition:</b> event.h:530</div></div>
<div class="ttc" id="aevent_8h_html_acfef69af45abee54725f40f7f29986c5a230574947412d83f2dd19fe8c7d286e7"><div class="ttname"><a href="event_8h.html#acfef69af45abee54725f40f7f29986c5a230574947412d83f2dd19fe8c7d286e7">EVENT_BASE_FLAG_IGNORE_ENV</a></div><div class="ttdeci">@ EVENT_BASE_FLAG_IGNORE_ENV</div><div class="ttdoc">Do not check the EVENT_* environment variables when configuring an event_base</div><div class="ttdef"><b>Definition:</b> event.h:551</div></div>
<div class="ttc" id="aevent_8h_html_ac5328011d251a7af085fdc19deb748bc"><div class="ttname"><a href="event_8h.html#ac5328011d251a7af085fdc19deb748bc">event_config_avoid_method</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_config_avoid_method(struct event_config *cfg, const char *method)</div><div class="ttdoc">Enters an event method that should be avoided into the configuration.</div></div>
<div class="ttc" id="aevent_8h_html_a3dd8aaea50a18e1b300ae6a138132743"><div class="ttname"><a href="event_8h.html#a3dd8aaea50a18e1b300ae6a138132743">event_base_get_num_events</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_base_get_num_events(struct event_base *eb, unsigned int flags)</div><div class="ttdoc">Gets the number of events in event_base, as specified in the flags.</div></div>
<div class="ttc" id="aevent_8h_html_ab0c85ebe9cf057be1aa17724c701b0c8"><div class="ttname"><a href="event_8h.html#ab0c85ebe9cf057be1aa17724c701b0c8">event_add</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_add(struct event *ev, const struct timeval *timeout)</div><div class="ttdoc">Add an event to the set of pending events.</div></div>
<div class="ttc" id="aevent_8h_html_a20fb823ec65b17519ec07aee1a0a22ba"><div class="ttname"><a href="event_8h.html#a20fb823ec65b17519ec07aee1a0a22ba">event_base_set</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_base_set(struct event_base *eb, struct event *ev)</div><div class="ttdoc">Associate a different event base with an event.</div></div>
<div class="ttc" id="aevent_8h_html_a7d5c38711c6a72545b939cc375468f79"><div class="ttname"><a href="event_8h.html#a7d5c38711c6a72545b939cc375468f79">event_base_foreach_event</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_base_foreach_event(struct event_base *base, event_base_foreach_event_cb fn, void *arg)</div><div class="ttdoc">Iterate over all added or active events events in an event loop, and invoke a given callback on each ...</div></div>
<div class="ttc" id="aevent_8h_html_abce01eafdfef974a80fdf9a507f5eca9"><div class="ttname"><a href="event_8h.html#abce01eafdfef974a80fdf9a507f5eca9">event_enable_debug_logging</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void event_enable_debug_logging(ev_uint32_t which)</div><div class="ttdoc">Turn on debugging logs and have them sent to the default log handler.</div></div>
<div class="ttc" id="aevent_8h_html_a61f656b17425f17ed857b96d45fc6268"><div class="ttname"><a href="event_8h.html#a61f656b17425f17ed857b96d45fc6268">event_base_foreach_event_cb</a></div><div class="ttdeci">int(* event_base_foreach_event_cb)(const struct event_base *, const struct event *, void *)</div><div class="ttdoc">Callback for iterating events in an event base via event_base_foreach_event.</div><div class="ttdef"><b>Definition:</b> event.h:1627</div></div>
<div class="ttc" id="aevent_8h_html_aed2307f3d9b38e07cc10c2607322d758"><div class="ttname"><a href="event_8h.html#aed2307f3d9b38e07cc10c2607322d758">event_callback_fn</a></div><div class="ttdeci">void(* event_callback_fn)(evutil_socket_t, short, void *)</div><div class="ttdoc">A callback function for an event.</div><div class="ttdef"><b>Definition:</b> event.h:1048</div></div>
<div class="ttc" id="aevent_8h_html_acfef69af45abee54725f40f7f29986c5a9eaa69643a73f5fb5959db017c9050a5"><div class="ttname"><a href="event_8h.html#acfef69af45abee54725f40f7f29986c5a9eaa69643a73f5fb5959db017c9050a5">EVENT_BASE_FLAG_EPOLL_DISALLOW_TIMERFD</a></div><div class="ttdeci">@ EVENT_BASE_FLAG_EPOLL_DISALLOW_TIMERFD</div><div class="ttdoc">With EVENT_BASE_FLAG_PRECISE_TIMER, epoll backend will use timerfd for more accurate timers,...</div><div class="ttdef"><b>Definition:</b> event.h:600</div></div>
<div class="ttc" id="aevent_8h_html_ae7da61aef13e27a3047151b696b44c80a2e964e8a8f3033d26d52831fb8eec199"><div class="ttname"><a href="event_8h.html#ae7da61aef13e27a3047151b696b44c80a2e964e8a8f3033d26d52831fb8eec199">EV_FEATURE_FDS</a></div><div class="ttdeci">@ EV_FEATURE_FDS</div><div class="ttdoc">Require an event method that allows file descriptors as well as sockets.</div><div class="ttdef"><b>Definition:</b> event.h:523</div></div>
<div class="ttc" id="autil_8h_html"><div class="ttname"><a href="util_8h.html">util.h</a></div><div class="ttdoc">Common convenience functions for cross-platform portability and related socket manipulations.</div></div>
<div class="ttc" id="aevent_8h_html_acfef69af45abee54725f40f7f29986c5a057dff1977c48174f0a0f0c43ef92ec5"><div class="ttname"><a href="event_8h.html#acfef69af45abee54725f40f7f29986c5a057dff1977c48174f0a0f0c43ef92ec5">EVENT_BASE_FLAG_NO_CACHE_TIME</a></div><div class="ttdeci">@ EVENT_BASE_FLAG_NO_CACHE_TIME</div><div class="ttdoc">Instead of checking the current time every time the event loop is ready to run timeout callbacks,...</div><div class="ttdef"><b>Definition:</b> event.h:564</div></div>
<div class="ttc" id="aevent_8h_html_af34c025430d445427a2a5661082405c3"><div class="ttname"><a href="event_8h.html#af34c025430d445427a2a5661082405c3">event_base_new</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct event_base * event_base_new(void)</div><div class="ttdoc">Create and return a new event_base to use with the rest of Libevent.</div></div>
<div class="ttc" id="aevent_8h_html_a34ce349afe4a37119e1ac50710642ccb"><div class="ttname"><a href="event_8h.html#a34ce349afe4a37119e1ac50710642ccb">event_base_loopcontinue</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_base_loopcontinue(struct event_base *eb)</div><div class="ttdoc">Tell the active event_base_loop() to scan for new events immediately.</div></div>
<div class="ttc" id="aevent_8h_html_a28e0be91488e8a0ed57a582f3343eaf6"><div class="ttname"><a href="event_8h.html#a28e0be91488e8a0ed57a582f3343eaf6">event_base_loopbreak</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_base_loopbreak(struct event_base *eb)</div><div class="ttdoc">Abort the active event_base_loop() immediately.</div></div>
<div class="ttc" id="aevent_8h_html_ae3853087c016ff8e877d914b1bda8f90"><div class="ttname"><a href="event_8h.html#ae3853087c016ff8e877d914b1bda8f90">event_base_got_break</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_base_got_break(struct event_base *eb)</div><div class="ttdoc">Checks if the event loop was told to abort immediately by event_base_loopbreak().</div></div>
<div class="ttc" id="aevent_8h_html_ab90af034dd2638511f483bd25effdc77"><div class="ttname"><a href="event_8h.html#ab90af034dd2638511f483bd25effdc77">event_get_base</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct event_base * event_get_base(const struct event *ev)</div><div class="ttdoc">Get the event_base associated with an event.</div></div>
<div class="ttc" id="aevent_8h_html_a0fbd35d624f1c865329a2a388afba3fd"><div class="ttname"><a href="event_8h.html#a0fbd35d624f1c865329a2a388afba3fd">event_base_gettimeofday_cached</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int event_base_gettimeofday_cached(struct event_base *base, struct timeval *tv)</div><div class="ttdoc">Sets 'tv' to the current time (as returned by gettimeofday()), looking at the cached value in 'base' ...</div></div>
<div class="ttc" id="autil_8h_html_a7ef0023565082a65020f6e56be59fd0b"><div class="ttname"><a href="util_8h.html#a7ef0023565082a65020f6e56be59fd0b">evutil_socket_t</a></div><div class="ttdeci">#define evutil_socket_t</div><div class="ttdoc">A type wide enough to hold the output of "socket()" or "accept()".</div><div class="ttdef"><b>Definition:</b> util.h:325</div></div>
<div class="ttc" id="aevent_8h_html_a2ec6be5aff4af06b22da20d5ad747ff2"><div class="ttname"><a href="event_8h.html#a2ec6be5aff4af06b22da20d5ad747ff2">event_set_log_callback</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void event_set_log_callback(event_log_cb cb)</div><div class="ttdoc">Redirect Libevent's log messages.</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>