Close down everything if dhcpcd connection lost.
[dhcpcd-ui] / src / libdhcpcd / dhcpcd.h
index 39aa36e299fe2c5a3af1e5d038b0976e672189f2..68f9a88eb1360d7cca647fd284dfb77b6613ee25 100644 (file)
@@ -142,6 +142,7 @@ typedef struct dhcpcd_connection {
        bool privileged;
        int command_fd;
        int listen_fd;
+       const char *progname;
 
        DHCPCD_IF *interfaces;
        DHCPCD_WPA *wpa;
@@ -178,6 +179,8 @@ typedef void *DHCPCD_CONNECTION;
 
 DHCPCD_CONNECTION * dhcpcd_new(void);
 const char * dhcpcd_version(DHCPCD_CONNECTION *);
+void dhcpcd_set_progname(DHCPCD_CONNECTION *, const char *);
+const char * dhcpcd_get_progname(const DHCPCD_CONNECTION *);
 const char * dhcpcd_status(DHCPCD_CONNECTION *);
 const char * dhcpcd_cffile(DHCPCD_CONNECTION *);
 bool dhcpcd_realloc(DHCPCD_CONNECTION *, size_t);