From acc8244ca2dce5f977f2a2552f598c79169ff909 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 5 Apr 2018 20:06:03 +0200 Subject: [PATCH] all: add D-Bus property "Flags" for Settings.Connection interface The D-Bus interface already has a boolean property "Unsaved". While that is nicer too look at (in the API), adding a new flag is very cumbersome, and also has more overhead. For example, it requires extending the D-Bus API, all the way down to libnm. Add a flags argument, that will allow to add future boolean flags easier. --- ...top.NetworkManager.Settings.Connection.xml | 11 ++++++ libnm-core/nm-dbus-interface.h | 12 ++++++ libnm/libnm.ver | 2 + libnm/nm-remote-connection.c | 37 +++++++++++++++++++ libnm/nm-remote-connection.h | 4 ++ src/settings/nm-settings-connection.c | 25 ++++++++++++- src/settings/nm-settings-connection.h | 7 ++++ 7 files changed, 96 insertions(+), 2 deletions(-) diff --git a/introspection/org.freedesktop.NetworkManager.Settings.Connection.xml b/introspection/org.freedesktop.NetworkManager.Settings.Connection.xml index ec596fd1e9..13f626c339 100644 --- a/introspection/org.freedesktop.NetworkManager.Settings.Connection.xml +++ b/introspection/org.freedesktop.NetworkManager.Settings.Connection.xml @@ -159,6 +159,17 @@ --> + + +