diff options
author | Thomas Haller <thaller@redhat.com> | 2015-12-02 10:33:19 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-12-05 19:34:06 +0100 |
commit | 9a8d9a0d855cfe2f82b171d48f8efbedc4f4d417 (patch) | |
tree | 65fb403848cb832828381da8b736e7fac7a394f3 /src/devices/nm-device-bond.h | |
parent | f9404d36fdbcf91a7f6ec358ee6aef2b448428c7 (diff) | |
download | NetworkManager-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-bond.h')
-rw-r--r-- | src/devices/nm-device-bond.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/devices/nm-device-bond.h b/src/devices/nm-device-bond.h index 8165bb8062..9e86719e3c 100644 --- a/src/devices/nm-device-bond.h +++ b/src/devices/nm-device-bond.h @@ -32,8 +32,6 @@ G_BEGIN_DECLS #define NM_IS_DEVICE_BOND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_DEVICE_BOND)) #define NM_DEVICE_BOND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_DEVICE_BOND, NMDeviceBondClass)) -#define NM_DEVICE_BOND_SLAVES "slaves" - typedef NMDevice NMDeviceBond; typedef NMDeviceClass NMDeviceBondClass; |