From 98ee18d888df477c35a8f2ce258ac2daf1099b26 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 29 Nov 2017 19:46:00 +0100 Subject: [PATCH] all: add new D-Bus API org.freedesktop.NetworkManager.Settings.Connection.Update2() We already have Update(), UpdateUnsaved() and Save(), which serve similar purposes. We will need a form of update with another argument. Most notably, to block autoconnect while doing the update. Other use cases could be to prevent reapplying connection.zone and connection.metered, to to reapply all changes. Instead of adding a specific update function that only serves that new use-case, add a extensible Update2() function. It can be extended to cope with future variants of update. --- ...top.NetworkManager.Settings.Connection.xml | 34 +++++ libnm-core/nm-dbus-interface.h | 14 ++ libnm-core/nm-errors.h | 2 + libnm/libnm.ver | 1 + libnm/nm-remote-connection.c | 61 ++++---- src/settings/nm-settings-connection.c | 134 ++++++++++++++---- 6 files changed, 188 insertions(+), 58 deletions(-) diff --git a/introspection/org.freedesktop.NetworkManager.Settings.Connection.xml b/introspection/org.freedesktop.NetworkManager.Settings.Connection.xml index 61bd26ddc6..6e518677e9 100644 --- a/introspection/org.freedesktop.NetworkManager.Settings.Connection.xml +++ b/introspection/org.freedesktop.NetworkManager.Settings.Connection.xml @@ -101,6 +101,40 @@ --> + + + + + + + +