summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-device-adsl.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-02-11 09:55:04 -0500
committerDan Winship <danw@gnome.org>2014-03-06 09:38:36 -0500
commit5cd37d250aa102883c9547c5edfb02b806c79454 (patch)
tree21b717a699a3fe409e06eacf4069dd56e23d5479 /libnm-glib/nm-device-adsl.c
parent4a5e2ced0854acc9008cdbd5322d61c30acee6b3 (diff)
downloadNetworkManager-5cd37d250aa102883c9547c5edfb02b806c79454.tar.gz
libnm-glib: add nm_device_get_setting_type()
Add a function mapping NMDevices to their corresponding base NMSetting types.
Diffstat (limited to 'libnm-glib/nm-device-adsl.c')
-rw-r--r--libnm-glib/nm-device-adsl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libnm-glib/nm-device-adsl.c b/libnm-glib/nm-device-adsl.c
index e2db4da78f..b3f9691ee8 100644
--- a/libnm-glib/nm-device-adsl.c
+++ b/libnm-glib/nm-device-adsl.c
@@ -133,6 +133,12 @@ connection_compatible (NMDevice *device, NMConnection *connection, GError **erro
return NM_DEVICE_CLASS (nm_device_adsl_parent_class)->connection_compatible (device, connection, error);
}
+static GType
+get_setting_type (NMDevice *device)
+{
+ return NM_TYPE_SETTING_ADSL;
+}
+
/******************************************************************/
static void
@@ -221,6 +227,7 @@ nm_device_adsl_class_init (NMDeviceAdslClass *adsl_class)
object_class->finalize = finalize;
object_class->get_property = get_property;
device_class->connection_compatible = connection_compatible;
+ device_class->get_setting_type = get_setting_type;
/* properties */
/**