Blame


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