| OLD | NEW |
| 1 /* | 1 /* |
| 2 * dhcpcd - DHCP client daemon | 2 * dhcpcd - DHCP client daemon |
| 3 * Copyright (c) 2006-2008 Roy Marples <roy@marples.name> | 3 * Copyright (c) 2006-2008 Roy Marples <roy@marples.name> |
| 4 * All rights reserved | 4 * All rights reserved |
| 5 | 5 |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 25 * SUCH DAMAGE. | 25 * SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef ELOOP_H | 28 #ifndef ELOOP_H |
| 29 #define ELOOP_H | 29 #define ELOOP_H |
| 30 | 30 |
| 31 #include <time.h> | 31 #include <time.h> |
| 32 | 32 |
| 33 void add_event(int fd, void (*)(void *), void *); | 33 int add_event(int fd, void (*)(void *), void *); |
| 34 int add_event_flags(int fd, int flags, void (*)(int, void *), void *); |
| 34 void delete_event(int fd); | 35 void delete_event(int fd); |
| 35 void add_timeout_sec(time_t, void (*)(void *), void *); | 36 void add_timeout_sec(time_t, void (*)(void *), void *); |
| 36 void add_timeout_tv(const struct timeval *, void (*)(void *), void *); | 37 void add_timeout_tv(const struct timeval *, void (*)(void *), void *); |
| 37 void delete_timeout(void (*)(void *), void *); | 38 void delete_timeout(void (*)(void *), void *); |
| 38 void delete_timeouts(void *, void (*)(void *), ...); | 39 void delete_timeouts(void *, void (*)(void *), ...); |
| 39 void start_eloop(void); | 40 void start_eloop(void); |
| 40 | 41 |
| 41 #endif | 42 #endif |
| OLD | NEW |