summaryrefslogtreecommitdiff
path: root/src/nm-config-data.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nm-config-data.h')
-rw-r--r--src/nm-config-data.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nm-config-data.h b/src/nm-config-data.h
index 9d1e20a6a2..64a35a48e8 100644
--- a/src/nm-config-data.h
+++ b/src/nm-config-data.h
@@ -233,5 +233,14 @@ GKeyFile *_nm_config_data_get_keyfile (const NMConfigData *self);
GKeyFile *_nm_config_data_get_keyfile_user (const NMConfigData *self);
GKeyFile *_nm_config_data_get_keyfile_intern (const NMConfigData *self);
+/*****************************************************************************/
+
+/* nm-config-data.c requires getting the DHCP manager's configuration. That is a bit
+ * ugly, and optimally, NMConfig* is independent of NMDhcpManager. Instead of
+ * including the header, forward declare the two functions that we need. */
+struct _NMDhcpManager;
+struct _NMDhcpManager *nm_dhcp_manager_get (void);
+const char *nm_dhcp_manager_get_config (struct _NMDhcpManager *self);
+
#endif /* NM_CONFIG_DATA_H */