Blob


1 /*
2 * This is free and unencumbered software released into the public domain.
3 *
4 * Anyone is free to copy, modify, publish, use, compile, sell, or
5 * distribute this software, either in source code form or as a compiled
6 * binary, for any purpose, commercial or non-commercial, and by any
7 * means.
8 *
9 * In jurisdictions that recognize copyright laws, the author or authors
10 * of this software dedicate any and all copyright interest in the
11 * software to the public domain. We make this dedication for the benefit
12 * of the public at large and to the detriment of our heirs and
13 * successors. We intend this dedication to be an overt act of
14 * relinquishment in perpetuity of all present and future rights to this
15 * software under copyright law.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
21 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23 * OTHER DEALINGS IN THE SOFTWARE.
24 */
26 struct timeval;
28 #define EV_READ 0x1
29 #define EV_WRITE 0x2
30 #define EV_SIGNAL 0x4
31 #define EV_TIMEOUT 0x8
33 int ev_init(void);
34 int ev_add(int, int, void(*)(int, int, void *), void *);
35 int ev_signal(int, void(*)(int, int, void * ), void *);
36 unsigned int ev_timer(const struct timeval *, void(*)(int, int, void *),
37 void *);
38 int ev_timer_pending(unsigned int);
39 int ev_timer_cancel(unsigned int);
40 int ev_del(int);
41 int ev_step(void);
42 int ev_step(void);
43 int ev_loop(void);
44 void ev_break(void);