chiark / gitweb /
dhcp: Add timeout and main loop support
[elogind.git] / src / systemd / sd-dhcp-client.h
index 9b19a1dc97a98922ae26229d346c92e2407768d5..5c9c32793e4ded4f8a87759b781a48de997716b4 100644 (file)
@@ -23,6 +23,9 @@
 ***/
 
 #include <netinet/in.h>
+#include <net/ethernet.h>
+
+#include "sd-event.h"
 
 typedef struct sd_dhcp_client sd_dhcp_client;
 
@@ -30,7 +33,11 @@ int sd_dhcp_client_set_request_option(sd_dhcp_client *client, uint8_t option);
 int sd_dhcp_client_set_request_address(sd_dhcp_client *client,
                                        const struct in_addr *last_address);
 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);
 
-sd_dhcp_client *sd_dhcp_client_new(void);
+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(sd_event *event);
 
 #endif