summaryrefslogtreecommitdiff
path: root/src/dhcp-manager/nm-dhcp-client.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2014-10-29 17:12:46 -0500
committerDan Williams <dcbw@redhat.com>2014-11-07 12:18:32 -0600
commit318a8c2d727bee5c401f2d6b7f28f706ecb4dfb2 (patch)
tree39c7462577f64ab15510f744d34b4f0d7084945e /src/dhcp-manager/nm-dhcp-client.h
parent0b98dc4387c52616aa39979ce61848e6ca8b06b7 (diff)
downloadNetworkManager-318a8c2d727bee5c401f2d6b7f28f706ecb4dfb2.tar.gz
dhcp: move client-specific knowledge out of the manager
Diffstat (limited to 'src/dhcp-manager/nm-dhcp-client.h')
-rw-r--r--src/dhcp-manager/nm-dhcp-client.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dhcp-manager/nm-dhcp-client.h b/src/dhcp-manager/nm-dhcp-client.h
index ca0fdd391b..a9ce9bec37 100644
--- a/src/dhcp-manager/nm-dhcp-client.h
+++ b/src/dhcp-manager/nm-dhcp-client.h
@@ -99,6 +99,17 @@ typedef struct {
GType nm_dhcp_client_get_type (void);
+typedef const char *(*NMDhcpClientGetPathFunc) (void);
+
+typedef GSList * (*NMDhcpClientGetLeaseConfigsFunc) (const char *iface,
+ const char *uuid,
+ gboolean ipv6);
+
+void _nm_dhcp_client_register (GType gtype,
+ const char *name,
+ NMDhcpClientGetPathFunc get_path_func,
+ NMDhcpClientGetLeaseConfigsFunc get_lease_configs_func);
+
pid_t nm_dhcp_client_get_pid (NMDhcpClient *self);
const char *nm_dhcp_client_get_iface (NMDhcpClient *self);