projects
/
NetworkManager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc06763
)
libnm-glib: consider unknown devices as generic ones
author
Beniamino Galvani
<bgalvani@redhat.com>
Thu, 26 Nov 2015 14:00:27 +0000
(15:00 +0100)
committer
Beniamino Galvani
<bgalvani@redhat.com>
Wed, 9 Dec 2015 15:36:46 +0000
(16:36 +0100)
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.
libnm-glib/nm-device.c
patch
|
blob
|
history
diff --git
a/libnm-glib/nm-device.c
b/libnm-glib/nm-device.c
index
ade17d5
..
b1f8cfb
100644
(file)
--- 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
;
}
}