From 9d2ed74e74f4a37cb2c953619ae4d96f5f8a4fc4 Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Wed, 6 Oct 2021 16:09:28 +0200 Subject: [PATCH] core: introduce device::ports property The property `PROP_PORTS` should be of type g_param_spec_variant() with variant 'ao'. This way the variant can be cached. The deprecated property 'device::slaves' in 'src/core/devices/nm-device.c' must have the same getter-implementation, returning the same GVariant instance. Signed-off-by: Fernando Fernandez Mancera --- ...freedesktop.NetworkManager.Device.Bond.xml | 5 +- ...eedesktop.NetworkManager.Device.Bridge.xml | 6 +- ...esktop.NetworkManager.Device.OvsBridge.xml | 5 +- ...edesktop.NetworkManager.Device.OvsPort.xml | 5 +- ...freedesktop.NetworkManager.Device.Team.xml | 6 +- .../org.freedesktop.NetworkManager.Device.xml | 13 +++ src/core/devices/nm-device.c | 92 ++++++++++++------- src/core/devices/nm-device.h | 1 + 8 files changed, 88 insertions(+), 45 deletions(-) diff --git a/introspection/org.freedesktop.NetworkManager.Device.Bond.xml b/introspection/org.freedesktop.NetworkManager.Device.Bond.xml index 26611aae59..e29dee45c8 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Bond.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Bond.xml @@ -30,8 +30,9 @@ n diff --git a/introspection/org.freedesktop.NetworkManager.Device.Bridge.xml b/introspection/org.freedesktop.NetworkManager.Device.Bridge.xml index 379e702a47..ee0a9c5058 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Bridge.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Bridge.xml @@ -30,8 +30,10 @@ n diff --git a/introspection/org.freedesktop.NetworkManager.Device.OvsBridge.xml b/introspection/org.freedesktop.NetworkManager.Device.OvsBridge.xml index ff58bd9527..5970a59d6a 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.OvsBridge.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.OvsBridge.xml @@ -10,8 +10,9 @@ diff --git a/introspection/org.freedesktop.NetworkManager.Device.OvsPort.xml b/introspection/org.freedesktop.NetworkManager.Device.OvsPort.xml index b43080378e..3cd1fa54d6 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.OvsPort.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.OvsPort.xml @@ -10,8 +10,9 @@ diff --git a/introspection/org.freedesktop.NetworkManager.Device.Team.xml b/introspection/org.freedesktop.NetworkManager.Device.Team.xml index bbae316b1d..0634d87990 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Team.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Team.xml @@ -30,8 +30,10 @@ n diff --git a/introspection/org.freedesktop.NetworkManager.Device.xml b/introspection/org.freedesktop.NetworkManager.Device.xml index 32945bcb38..82f127edde 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.xml @@ -310,6 +310,19 @@ --> + + +