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:
Beniamino Galvani 2015-11-26 15:00:27 +01:00
parent dc0676330b
commit 228d2dab82

View file

@ -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;
}
}