summaryrefslogtreecommitdiff
path: root/src/nm-dhcp4-config.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2008-08-07 15:26:32 +0000
committerDan Williams <dcbw@redhat.com>2008-08-07 15:26:32 +0000
commit881370ab2c92c24a448340e284d402c42a174009 (patch)
tree5cbf8f9d3352c4dee8714512a811eaa6612aae46 /src/nm-dhcp4-config.c
parent4a0766990b446b7d7f18d05ccf18c099c3ad36e6 (diff)
downloadNetworkManager-881370ab2c92c24a448340e284d402c42a174009.tar.gz
2008-08-07 Dan Williams <dcbw@redhat.com>
* include/NetworkManager.h - Add the DHCP4Config D-Bus interface * libnm-glib/Makefile.am libnm-glib/nm-dhcp4-config.c libnm-glib/nm-dhcp4-config.h - Handle DHCP4 config objects exported by NM over D-Bus * libnm-glib/nm-device.c libnm-glib/nm-device.h - Add a 'dhcp4-config' property * libnm-glib/libnm-glib-test.c - Print out DHCP4 config for devices - Fix some crashes when no connections are active * src/nm-device-interface.c src/nm-device.c src/nm-dhcp4-config.c src/nm-dhcp4-config.h - Treat dhcp4-config object as an object path at the D-Bus interface so that when it doesn't exist we can proxy it as "/" which dbus-glib doesn't let us do when the property type is G_TYPE_OBJECT git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3905 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Diffstat (limited to 'src/nm-dhcp4-config.c')
-rw-r--r--src/nm-dhcp4-config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nm-dhcp4-config.c b/src/nm-dhcp4-config.c
index 334a1b0e57..2d5e23c975 100644
--- a/src/nm-dhcp4-config.c
+++ b/src/nm-dhcp4-config.c
@@ -105,6 +105,14 @@ nm_dhcp4_config_get_option (NMDHCP4Config *self, const char *key)
return value ? g_value_get_string (value) : NULL;
}
+const char *
+nm_dhcp4_config_get_dbus_path (NMDHCP4Config *self)
+{
+ g_return_val_if_fail (NM_IS_DHCP4_CONFIG (self), NULL);
+
+ return NM_DHCP4_CONFIG_GET_PRIVATE (self)->dbus_path;
+}
+
static void
nm_gvalue_destroy (gpointer data)
{