NetworkManager/src/devices
Thomas Haller e8e455817b platform: refactor virtual methods for link objects in NMPlatform
Change nm_platform_link_get() to return the cached NMPlatformLink
instance. Now what all our implementations (fake and linux) have such a
cache internal object, let's just expose it directly.
Note that the lifetime of the exposed link object is possibly quite
short. A caller must copy the returned value if he intends to preserve
it for later.
Also add nm_platform_link_get_by_ifname() and modify nm_platform_link_get_by_address()
to return the instance.

Certain functions, such as nm_platform_link_get_name(),
nm_platform_link_get_ifindex(), etc. are solely implemented based
on looking at the returned NMPlatformLink object. No longer implement
them as virtual functions but instead implement them in the base class
(nm-platform.c).
This removes code and eliminates the redundancy of the exposed
NMPlatformLink instance and the nm_platform_link_get_*() accessors.
Thereby also fix a bug in NMFakePlatform that tracked the link address
in a separate "address" field, instead of using "link.addr". That was
a case where the redundancy actually led to a bug in fake platform.

Also remove some stub implementations in NMFakePlatform that just
bail out. Instead allow for a missing virtual functions and perform
the "default" action in the accessor.
An example for that is nm_platform_link_get_permanent_address().
2015-06-21 12:53:48 +02:00
..
adsl platform: signal missing firmware in nm_platform_set_up() 2015-06-17 11:44:16 +02:00
bluetooth core: let plugins indicate links which should be ignored 2015-05-06 16:14:25 -05:00
team platform: return NMPlatformError from link-add functions 2015-06-17 11:44:16 +02:00
wifi builds: only enable TAP driver for glib >= 2.37.6 2015-05-28 12:51:24 +02:00
wwan device: add nm_device_get_type_description() function 2015-06-05 12:38:29 +02:00
nm-device-bond.c platform: return NMPlatformError from link-add functions 2015-06-17 11:44:16 +02:00
nm-device-bond.h devices: drop device-type-specific error domains 2014-10-22 08:29:08 -04:00
nm-device-bridge.c platform: return NMPlatformError from link-add functions 2015-06-17 11:44:16 +02:00
nm-device-bridge.h devices: drop device-type-specific error domains 2014-10-22 08:29:08 -04:00
nm-device-ethernet-utils.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
nm-device-ethernet-utils.h settings: create default wired connection from NMDeviceEthernet 2014-09-11 12:47:07 -05:00
nm-device-ethernet.c platform: expose GUdevDevice instance for platform links 2015-06-17 11:44:16 +02:00
nm-device-ethernet.h devices: drop device-type-specific error domains 2014-10-22 08:29:08 -04:00
nm-device-factory.c device: fix wrong assert in NMDeviceFactory 2015-05-18 15:20:22 +02:00
nm-device-factory.h core: let plugins indicate links which should be ignored 2015-05-06 16:14:25 -05:00
nm-device-generic.c device: add nm_device_get_type_description() function 2015-06-05 12:38:29 +02:00
nm-device-generic.h devices: drop device-type-specific error domains 2014-10-22 08:29:08 -04:00
nm-device-gre.c core: let plugins indicate links which should be ignored 2015-05-06 16:14:25 -05:00
nm-device-gre.h gre: port to internal device factory 2014-09-11 12:50:16 -05:00
nm-device-infiniband.c platform: return NMPlatformError from link-add functions 2015-06-17 11:44:16 +02:00
nm-device-infiniband.h devices: drop device-type-specific error domains 2014-10-22 08:29:08 -04:00
nm-device-logging.h device: add logging macro _LOGT() 2014-12-09 16:17:46 +01:00
nm-device-macvlan.c core: let plugins indicate links which should be ignored 2015-05-06 16:14:25 -05:00
nm-device-macvlan.h macvlan: port to internal device factory 2014-09-11 12:50:16 -05:00
nm-device-private.h core: use explict NMLogDomain enum instead of int 2015-05-12 16:46:48 +02:00
nm-device-tun.c core: let plugins indicate links which should be ignored 2015-05-06 16:14:25 -05:00
nm-device-tun.h tun: port to internal device factory 2014-09-11 12:50:17 -05:00
nm-device-veth.c core: let plugins indicate links which should be ignored 2015-05-06 16:14:25 -05:00
nm-device-veth.h veth: port to internal device factory 2014-09-11 12:50:16 -05:00
nm-device-vlan.c platform: return NMPlatformError from link-add functions 2015-06-17 11:44:16 +02:00
nm-device-vlan.h vlan: export parent device for VLANs as D-Bus property 2014-11-24 10:33:13 +01:00
nm-device-vxlan.c vxlan: o.fd.NM.Device.Proxy is a boolean 2015-06-18 22:26:36 +02:00
nm-device-vxlan.h vxlan: port to internal device factory 2014-09-11 12:50:16 -05:00
nm-device.c platform: refactor virtual methods for link objects in NMPlatform 2015-06-21 12:53:48 +02:00
nm-device.h core,libnm: add 'metered' property to NMDevice 2015-06-09 18:11:25 +02:00