diff options
| author | Roy Marples <roy@marples.name> | 2008-09-03 16:49:28 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-09-03 16:49:28 +0000 |
| commit | f43e585355e50bd2e7021380db6fc792662f76be (patch) | |
| tree | d81565b32d67516b6ae178bcdbff09bda3251b45 /eloop.h | |
| parent | f0c98483e7369f2df38edc352433239fa24f6a2f (diff) | |
| download | dhcpcd-f43e585355e50bd2e7021380db6fc792662f76be.tar.xz | |
Add a control socket so that interfaces can be dynamically re-set.
This requires the event loop argument being changed to void *
so we can send arguments other than an interface.
Diffstat (limited to 'eloop.h')
| -rw-r--r-- | eloop.h | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -32,13 +32,12 @@ #include "dhcpcd.h" -void add_event(int fd, void (*)(struct interface *), struct interface *); +void add_event(int fd, void (*)(void *), void *); void delete_event(int fd); -void add_timeout_sec(time_t, void (*)(struct interface *), struct interface *); -void add_timeout_tv(const struct timeval *, - void (*)(struct interface *), struct interface *); -void delete_timeout(void (*)(struct interface *), struct interface *); -void delete_timeouts(struct interface *, void (*)(struct interface *), ...); +void add_timeout_sec(time_t, void (*)(void *), void *); +void add_timeout_tv(const struct timeval *, void (*)(void *), void *); +void delete_timeout(void (*)(void *), void *); +void delete_timeouts(void *, void (*)(void *), ...); void start_eloop(void); #endif |
