summaryrefslogtreecommitdiffstats
path: root/eloop.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-03 16:49:28 +0000
committerRoy Marples <roy@marples.name>2008-09-03 16:49:28 +0000
commitf43e585355e50bd2e7021380db6fc792662f76be (patch)
treed81565b32d67516b6ae178bcdbff09bda3251b45 /eloop.h
parentf0c98483e7369f2df38edc352433239fa24f6a2f (diff)
downloaddhcpcd-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.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/eloop.h b/eloop.h
index 18e64ee6..f29425bf 100644
--- a/eloop.h
+++ b/eloop.h
@@ -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