settings: create default wired connection from NMDeviceEthernet
authorDan Williams <dcbw@redhat.com>
Mon, 8 Sep 2014 21:11:51 +0000 (16:11 -0500)
committerDan Williams <dcbw@redhat.com>
Thu, 11 Sep 2014 17:47:07 +0000 (12:47 -0500)
commitbeb18050b5a00a704a74bff5c10919b44f087122
treee31642c743ad142e531b15364adaff7d6f178a66
parent56e2915536f6958f9103e080539240f9e258ea20
settings: create default wired connection from NMDeviceEthernet

Instead of creating it in NMSettings, where we must use
NM_IS_DEVICE_ETHERNET() (not NM_DEVICE_TYPE_ETHERNET because various generic
devices masquerade as NM_DEVICE_TYPE_ETHERNET too), push knowledge
of which device types create default wired connections into the device
types themselves.  This solves a problem with testcases where
libNetworkManager.a (which testcases link to) requires the symbol
nm_type_device_ethernet().
12 files changed:
.gitignore
po/POTFILES.in
src/Makefile.am
src/devices/nm-device-ethernet-utils.c [moved from src/settings/nm-settings-utils.c with 66% similarity]
src/devices/nm-device-ethernet-utils.h [moved from src/settings/nm-settings-utils.h with 78% similarity]
src/devices/nm-device-ethernet.c
src/devices/nm-device.c
src/devices/nm-device.h
src/settings/nm-settings.c
src/settings/tests/Makefile.am [deleted file]
src/tests/Makefile.am
src/tests/test-wired-defname.c [moved from src/settings/tests/test-wired-defname.c with 57% similarity]