chiark / gitweb /
dhcp: Process DHCP Ack/Nak message
[elogind.git] / src / systemd / sd-dhcp-client.h
index 2d2fdffd139488790d0043bea598cff0ce0da928..ed72cf1a7e01f978dad4db5279aa2468fb513026 100644 (file)
 #include <netinet/in.h>
 #include <net/ethernet.h>
 
+#include "sd-event.h"
+
+enum {
+        DHCP_EVENT_NO_LEASE                     = 1,
+        DHCP_EVENT_IP_ACQUIRE                   = 2,
+        DHCP_EVENT_IP_CHANGE                    = 3,
+};
+
 typedef struct sd_dhcp_client sd_dhcp_client;
 
 int sd_dhcp_client_set_request_option(sd_dhcp_client *client, uint8_t option);
@@ -36,6 +44,6 @@ int sd_dhcp_client_set_mac(sd_dhcp_client *client,
 
 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