From e089742dd1daf809734674754fa971cc2cf6c137 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 9 Jul 2019 15:22:01 +0200 Subject: core,libnm: add AddConnection2() D-Bus API to block autoconnect from the start It should be possible to add a profile with autoconnect blocked form the start. Update2() has a flag to block autoconnect, and so we need a way for adding a connection. As the existing AddConnection() and AddConnectionUnsaved() API is not extensible, add AddConnection2() that has flags and room for additional arguments. --- .../org.freedesktop.NetworkManager.Settings.xml | 35 +++ libnm-core/nm-dbus-interface.h | 21 ++ libnm/libnm.ver | 3 + libnm/nm-client.c | 164 ++++++++++++-- libnm/nm-client.h | 15 ++ libnm/nm-remote-settings.c | 252 +++++++++++++-------- libnm/nm-remote-settings.h | 23 +- shared/nm-glib-aux/nm-macros-internal.h | 5 + src/devices/bluetooth/nm-bluez-device.c | 1 + src/devices/wifi/nm-iwd-manager.c | 1 + src/nm-checkpoint.c | 1 + src/nm-manager.c | 2 + src/settings/nm-settings-connection.c | 21 +- src/settings/nm-settings-connection.h | 10 + src/settings/nm-settings.c | 133 ++++++++++- src/settings/nm-settings.h | 2 + 16 files changed, 542 insertions(+), 147 deletions(-) diff --git a/introspection/org.freedesktop.NetworkManager.Settings.xml b/introspection/org.freedesktop.NetworkManager.Settings.xml index 73da345ceb..f7be2717b8 100644 --- a/introspection/org.freedesktop.NetworkManager.Settings.xml +++ b/introspection/org.freedesktop.NetworkManager.Settings.xml @@ -63,6 +63,41 @@ + + + + + + + + +