diff options
author | Dan Winship <danw@gnome.org> | 2013-04-17 10:41:15 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2013-05-07 12:46:56 -0400 |
commit | ce4f2a4bd6270400e9d32c98ceaf8fa8f0b5df8c (patch) | |
tree | c2af832340f005076c92a8029ed2457690728e13 /libnm-glib/nm-device.c | |
parent | 8b823d7c6a9416e71aa4004ffdc91320a05cf870 (diff) | |
download | NetworkManager-ce4f2a4bd6270400e9d32c98ceaf8fa8f0b5df8c.tar.gz |
core, libnm-glib: add NMDeviceGeneric
Add NMDeviceGeneric, to provide generic support for unknown device
types, and create NMDeviceGenerics for those devices that NM
previously was ignoring. Allow NMSettingGeneric connections to be
activated on (managed) NMDeviceGenerics.
Diffstat (limited to 'libnm-glib/nm-device.c')
-rw-r--r-- | libnm-glib/nm-device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libnm-glib/nm-device.c b/libnm-glib/nm-device.c index d952914b5a..cda3a26381 100644 --- a/libnm-glib/nm-device.c +++ b/libnm-glib/nm-device.c @@ -37,6 +37,7 @@ #include "nm-device-bond.h" #include "nm-device-bridge.h" #include "nm-device-vlan.h" +#include "nm-device-generic.h" #include "nm-device.h" #include "nm-device-private.h" #include "nm-object-private.h" @@ -301,6 +302,8 @@ _nm_device_gtype_from_dtype (NMDeviceType dtype) return NM_TYPE_DEVICE_BRIDGE; case NM_DEVICE_TYPE_VLAN: return NM_TYPE_DEVICE_VLAN; + case NM_DEVICE_TYPE_GENERIC: + return NM_TYPE_DEVICE_GENERIC; default: g_warning ("Unknown device type %d", dtype); return G_TYPE_INVALID; |