diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2015-11-26 15:00:27 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2015-12-09 15:54:57 +0100 |
commit | ca0a6fd869b1f7ff80fd3a3c3378125f588d7cfa (patch) | |
tree | d0748ee901baedb00704f9b958fd23de991f65b7 | |
parent | 0a49e32097009f40984140251a949a49b796a8c3 (diff) | |
download | NetworkManager-ca0a6fd869b1f7ff80fd3a3c3378125f588d7cfa.tar.gz |
libnm-glib: consider unknown devices as generic ones
After commit 8ca6e412c1c0214603503521b6461e47b13be373, libnm-glib is
able to instantiate unknown devices as dummy objects without creating
a D-Bus proxy for them. Enable this behavior for every new unknown
device type.
-rw-r--r-- | libnm-glib/nm-device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libnm-glib/nm-device.c b/libnm-glib/nm-device.c index ade17d579e..b1f8cfb203 100644 --- a/libnm-glib/nm-device.c +++ b/libnm-glib/nm-device.c @@ -327,8 +327,8 @@ _nm_device_gtype_from_dtype (NMDeviceType dtype) case NM_DEVICE_TYPE_IP_TUNNEL: return NM_TYPE_DEVICE_GENERIC; default: - g_warning ("Unknown device type %d", dtype); - return G_TYPE_INVALID; + /* Fall back to NMDeviceGeneric for unknown devices */ + return NM_TYPE_DEVICE_GENERIC; } } |