chiark / gitweb /
dhcp: Add timeout and main loop support
[elogind.git] / src / systemd / sd-dhcp-client.h
index acfa3fac24a962cfa99a0bfe2960a64d83910731..5c9c32793e4ded4f8a87759b781a48de997716b4 100644 (file)
@@ -25,6 +25,8 @@
 #include <netinet/in.h>
 #include <net/ethernet.h>
 
+#include "sd-event.h"
+
 typedef struct sd_dhcp_client sd_dhcp_client;
 
 int sd_dhcp_client_set_request_option(sd_dhcp_client *client, uint8_t option);
@@ -34,7 +36,8 @@ int sd_dhcp_client_set_index(sd_dhcp_client *client, int interface_index);
 int sd_dhcp_client_set_mac(sd_dhcp_client *client,
                            const struct ether_addr *addr);
 
+int sd_dhcp_client_stop(sd_dhcp_client *client);
 int sd_dhcp_client_start(sd_dhcp_client *client);
-sd_dhcp_client *sd_dhcp_client_new(void);
+sd_dhcp_client *sd_dhcp_client_new(sd_event *event);
 
 #endif