From 2330a2704da9e131a0e8a3be385963f373b6467b Mon Sep 17 00:00:00 2001 From: Antonio Cardace Date: Thu, 5 Mar 2020 18:56:07 +0100 Subject: nm-device: expose via D-Bus the 'hw-address' property Drop device-specific 'hw-address' GObject properties which are now redundant. https://bugzilla.redhat.com/show_bug.cgi?id=1786937 --- ...freedesktop.NetworkManager.Device.Bluetooth.xml | 2 + .../org.freedesktop.NetworkManager.Device.Bond.xml | 2 + ...rg.freedesktop.NetworkManager.Device.Bridge.xml | 2 + ...org.freedesktop.NetworkManager.Device.Dummy.xml | 2 + ...g.freedesktop.NetworkManager.Device.Generic.xml | 2 + ...reedesktop.NetworkManager.Device.Infiniband.xml | 2 + ...rg.freedesktop.NetworkManager.Device.Lowpan.xml | 2 + ....freedesktop.NetworkManager.Device.OlpcMesh.xml | 2 + .../org.freedesktop.NetworkManager.Device.Team.xml | 2 + .../org.freedesktop.NetworkManager.Device.Tun.xml | 2 + .../org.freedesktop.NetworkManager.Device.Vlan.xml | 2 + ...org.freedesktop.NetworkManager.Device.Vxlan.xml | 2 + ...g.freedesktop.NetworkManager.Device.WifiP2P.xml | 2 + ...org.freedesktop.NetworkManager.Device.Wired.xml | 2 + ....freedesktop.NetworkManager.Device.Wireless.xml | 2 + .../org.freedesktop.NetworkManager.Device.Wpan.xml | 2 + .../org.freedesktop.NetworkManager.Device.xml | 11 ++++ libnm/nm-device-6lowpan.c | 46 ++----------- libnm/nm-device-6lowpan.h | 3 + libnm/nm-device-bond.c | 32 ++------- libnm/nm-device-bond.h | 2 + libnm/nm-device-bridge.c | 44 ++----------- libnm/nm-device-bridge.h | 2 + libnm/nm-device-bt.c | 36 ++--------- libnm/nm-device-bt.h | 1 + libnm/nm-device-dummy.c | 71 ++------------------ libnm/nm-device-dummy.h | 2 + libnm/nm-device-ethernet.c | 40 +++--------- libnm/nm-device-ethernet.h | 2 + libnm/nm-device-generic.c | 32 ++------- libnm/nm-device-generic.h | 1 + libnm/nm-device-infiniband.c | 44 ++----------- libnm/nm-device-infiniband.h | 2 + libnm/nm-device-macsec.c | 32 +-------- libnm/nm-device-macsec.h | 3 + libnm/nm-device-macvlan.c | 30 +-------- libnm/nm-device-macvlan.h | 2 + libnm/nm-device-olpc-mesh.c | 44 ++----------- libnm/nm-device-olpc-mesh.h | 2 + libnm/nm-device-team.c | 36 ++--------- libnm/nm-device-team.h | 2 + libnm/nm-device-tun.c | 44 +++---------- libnm/nm-device-tun.h | 2 + libnm/nm-device-vlan.c | 55 ++++------------ libnm/nm-device-vlan.h | 2 + libnm/nm-device-vxlan.c | 64 ++++++------------ libnm/nm-device-vxlan.h | 3 + libnm/nm-device-wifi-p2p.c | 44 ++----------- libnm/nm-device-wifi-p2p.h | 1 + libnm/nm-device-wifi.c | 44 ++++--------- libnm/nm-device-wifi.h | 2 + libnm/nm-device-wpan.c | 69 ++------------------ libnm/nm-device-wpan.h | 1 + libnm/nm-device.c | 75 +++++++++++++++++++++- libnm/nm-device.h | 1 + libnm/nm-libnm-utils.h | 11 +++- src/devices/nm-device.c | 1 + 57 files changed, 292 insertions(+), 681 deletions(-) diff --git a/introspection/org.freedesktop.NetworkManager.Device.Bluetooth.xml b/introspection/org.freedesktop.NetworkManager.Device.Bluetooth.xml index 43a3047c1e..1f5e618975 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Bluetooth.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Bluetooth.xml @@ -11,6 +11,8 @@ HwAddress: Bluetooth hardware address of the device. + + DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0. --> diff --git a/introspection/org.freedesktop.NetworkManager.Device.Bond.xml b/introspection/org.freedesktop.NetworkManager.Device.Bond.xml index 30421a5450..c7ccf38998 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Bond.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Bond.xml @@ -11,6 +11,8 @@ HwAddress: Hardware address of the device. +n + DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0. --> diff --git a/introspection/org.freedesktop.NetworkManager.Device.Bridge.xml b/introspection/org.freedesktop.NetworkManager.Device.Bridge.xml index 011805acb0..5a35f54dd1 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Bridge.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Bridge.xml @@ -11,6 +11,8 @@ HwAddress: Hardware address of the device. +n + DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0. --> diff --git a/introspection/org.freedesktop.NetworkManager.Device.Dummy.xml b/introspection/org.freedesktop.NetworkManager.Device.Dummy.xml index ce87693fb9..2c5675e8ae 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Dummy.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Dummy.xml @@ -11,6 +11,8 @@ HwAddress: Hardware address of the device. +n + DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0. --> diff --git a/introspection/org.freedesktop.NetworkManager.Device.Generic.xml b/introspection/org.freedesktop.NetworkManager.Device.Generic.xml index ecbfed6895..b847018be4 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Generic.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Generic.xml @@ -11,6 +11,8 @@ HwAddress: Hardware address of the device. +n + DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0. --> diff --git a/introspection/org.freedesktop.NetworkManager.Device.Infiniband.xml b/introspection/org.freedesktop.NetworkManager.Device.Infiniband.xml index cc03b74b8d..53f71486df 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Infiniband.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Infiniband.xml @@ -11,6 +11,8 @@ HwAddress: Hardware address of the device. +n + DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0. --> diff --git a/introspection/org.freedesktop.NetworkManager.Device.Lowpan.xml b/introspection/org.freedesktop.NetworkManager.Device.Lowpan.xml index c0317be6c3..3415f18510 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Lowpan.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Lowpan.xml @@ -11,6 +11,8 @@ HwAddress: The active hardware address of the device. + + DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0. --> diff --git a/introspection/org.freedesktop.NetworkManager.Device.OlpcMesh.xml b/introspection/org.freedesktop.NetworkManager.Device.OlpcMesh.xml index 0e54403d8f..3ae7ea961d 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.OlpcMesh.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.OlpcMesh.xml @@ -11,6 +11,8 @@ HwAddress: The hardware address of the device. + + DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0. --> diff --git a/introspection/org.freedesktop.NetworkManager.Device.Team.xml b/introspection/org.freedesktop.NetworkManager.Device.Team.xml index a0caa3992a..0a4c72122d 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Team.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Team.xml @@ -11,6 +11,8 @@ HwAddress: Hardware address of the device. +n + DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0. --> diff --git a/introspection/org.freedesktop.NetworkManager.Device.Tun.xml b/introspection/org.freedesktop.NetworkManager.Device.Tun.xml index 9dc4661a99..97bf5848cd 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Tun.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Tun.xml @@ -56,6 +56,8 @@ HwAddress: Hardware address of the device. +n + DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0. --> diff --git a/introspection/org.freedesktop.NetworkManager.Device.Vlan.xml b/introspection/org.freedesktop.NetworkManager.Device.Vlan.xml index 1bc83fce78..b63194ec66 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Vlan.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Vlan.xml @@ -11,6 +11,8 @@ HwAddress: Hardware address of the device. +n + DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0. --> diff --git a/introspection/org.freedesktop.NetworkManager.Device.Vxlan.xml b/introspection/org.freedesktop.NetworkManager.Device.Vxlan.xml index 52b59cc514..035ca09b94 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Vxlan.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Vxlan.xml @@ -19,6 +19,8 @@ HwAddress: Hardware address of the device. +n + DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0. --> diff --git a/introspection/org.freedesktop.NetworkManager.Device.WifiP2P.xml b/introspection/org.freedesktop.NetworkManager.Device.WifiP2P.xml index 40e6fdbb65..9e74eb6e56 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.WifiP2P.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.WifiP2P.xml @@ -14,6 +14,8 @@ The active hardware address of the device. + DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0. + Since: 1.16 --> diff --git a/introspection/org.freedesktop.NetworkManager.Device.Wired.xml b/introspection/org.freedesktop.NetworkManager.Device.Wired.xml index f62c3f0c3b..c501091951 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Wired.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Wired.xml @@ -12,6 +12,8 @@ HwAddress: Active hardware address of the device. + + DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0. --> diff --git a/introspection/org.freedesktop.NetworkManager.Device.Wireless.xml b/introspection/org.freedesktop.NetworkManager.Device.Wireless.xml index af54408816..d9af0964ec 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Wireless.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Wireless.xml @@ -46,6 +46,8 @@ HwAddress: The active hardware address of the device. + + DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0. --> diff --git a/introspection/org.freedesktop.NetworkManager.Device.Wpan.xml b/introspection/org.freedesktop.NetworkManager.Device.Wpan.xml index 32bc6f95d4..1591ce81f6 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Wpan.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Wpan.xml @@ -11,6 +11,8 @@ HwAddress: The active hardware address of the device. + + DEPRECATED. Use the "HwAddress" property in "org.freedesktop.NetworkManager.Device" instead which exists since version NetworkManager 1.24.0. --> diff --git a/introspection/org.freedesktop.NetworkManager.Device.xml b/introspection/org.freedesktop.NetworkManager.Device.xml index ca9dd8d758..e82770fc64 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.xml @@ -289,6 +289,17 @@ --> + + +