summaryrefslogtreecommitdiff
path: root/src/devices/nm-device-bridge.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-12-02 10:33:19 +0100
committerThomas Haller <thaller@redhat.com>2015-12-05 19:34:06 +0100
commit9a8d9a0d855cfe2f82b171d48f8efbedc4f4d417 (patch)
tree65fb403848cb832828381da8b736e7fac7a394f3 /src/devices/nm-device-bridge.h
parentf9404d36fdbcf91a7f6ec358ee6aef2b448428c7 (diff)
downloadNetworkManager-9a8d9a0d855cfe2f82b171d48f8efbedc4f4d417.tar.gz
device: implement slave property in parent device class
Instead of reimplementing the slave property in bond, bridge and team, just add the property to the parent class. It's not that the parent class would be agnostic to the master/slave implementation, all the slaves are known to the every device type implementation. Also, the derived class doesn't know the correct time when to invoke the notify-changed for the slaves property. E.g. it should be only invoked after nm_device_slave_notify_enslave() when other components also consider the slave as enslaved. Later this will be fixed so that the SLAVES property correspond to what other master/slave related properties say.
Diffstat (limited to 'src/devices/nm-device-bridge.h')
-rw-r--r--src/devices/nm-device-bridge.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/devices/nm-device-bridge.h b/src/devices/nm-device-bridge.h
index 1d0bf7ca0c..4648267525 100644
--- a/src/devices/nm-device-bridge.h
+++ b/src/devices/nm-device-bridge.h
@@ -33,8 +33,6 @@ G_BEGIN_DECLS
#define NM_IS_DEVICE_BRIDGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_DEVICE_BRIDGE))
#define NM_DEVICE_BRIDGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_DEVICE_BRIDGE, NMDeviceBridgeClass))
-#define NM_DEVICE_BRIDGE_SLAVES "slaves"
-
typedef NMDevice NMDeviceBridge;
typedef NMDeviceClass NMDeviceBridgeClass;