core: add a 'type-desc' property to NMDeviceInterface and use it

instead of littering the code with NM_IS_*.
This commit is contained in:
Dan Williams
2009-07-07 14:24:12 -04:00
parent d2e88e27b7
commit 3cdb0f6c7a
10 changed files with 50 additions and 22 deletions

View File

@@ -399,6 +399,7 @@ nm_device_ethernet_new (const char *udi,
NM_DEVICE_INTERFACE_IFACE, iface,
NM_DEVICE_INTERFACE_DRIVER, driver,
NM_DEVICE_ETHERNET_IFINDEX, ifindex,
NM_DEVICE_INTERFACE_TYPE_DESC, "Ethernet",
NULL);
}