summaryrefslogtreecommitdiffstats
path: root/dhcpcd.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 /dhcpcd.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 'dhcpcd.h')
-rw-r--r--dhcpcd.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/dhcpcd.h b/dhcpcd.h
index 86aa4959..c2ea5c78 100644
--- a/dhcpcd.h
+++ b/dhcpcd.h
@@ -28,7 +28,6 @@
#ifndef DHCPCD_H
#define DHCPCD_H
-#include <sys/socket.h>
#include <net/if.h>
#include <limits.h>
@@ -105,14 +104,15 @@ struct interface
};
extern int pidfd;
-void handle_exit_timeout(struct interface *);
-void send_request(struct interface *);
-void start_interface(struct interface *);
-void start_discover(struct interface *);
-void start_renew(struct interface *);
-void start_rebind(struct interface *);
+int handle_args(int, char **);
+void handle_exit_timeout(void *);
+void send_request(void *);
+void start_interface(void *);
+void start_discover(void *);
+void start_renew(void *);
+void start_rebind(void *);
void start_reboot(struct interface *);
-void start_expire(struct interface *);
+void start_expire(void *);
void send_decline(struct interface *);
void close_sockets(struct interface *);
void drop_config(struct interface *, const char *);