mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 06:40:18 +01:00
libnm-glib: consider unknown devices as generic ones
After commit 8ca6e412c1, 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.
This commit is contained in:
parent
dc0676330b
commit
228d2dab82
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue