NetworkManager/introspection
Thomas Haller 22c8721f35 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 %NM_SETTINGS_UPDATE2_FLAG_BLOCK_AUTOCONNECT flag to
block autoconnect, and so we need something similar when adding a connection.

As the existing AddConnection() and AddConnectionUnsaved() API is not
extensible, add AddConnection2() that has flags and room for additional
arguments.

Then add and implement the new flag %NM_SETTINGS_ADD_CONNECTION2_FLAG_BLOCK_AUTOCONNECT
for AddConnection2().

Note that libnm's nm_client_add_connection2() API can completely replace
the existing nm_client_add_connection_async() call. In particular, it
will automatically prefer to call the D-Bus methods AddConnection() and
AddConnectionUnsaved(), in order to work with server versions older than
1.20. The purpose of this is that when upgrading the package, the
running NetworkManager might still be older than the installed libnm.
Anyway, so since nm_client_add_connection2_finish() also has a result
output, the caller needs to decide whether he cares about that result.
Hence it has an argument ignore_out_result, which allows to fallback to
the old API. One might argue that a caller who doesn't care about the
output results while still wanting to be backward compatible, should
itself choose to call nm_client_add_connection_async() or
nm_client_add_connection2(). But instead, it's more convenient if the
new function can fully replace the old one, so that the caller does not
need to switch which start/finish method to call.

https://bugzilla.redhat.com/show_bug.cgi?id=1677068
2019-07-25 15:26:49 +02:00
..
meson.build build/meson: fix location of introspection files 2019-04-18 20:20:46 +02:00
org.freedesktop.NetworkManager.AccessPoint.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.AgentManager.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.Checkpoint.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.Connection.Active.xml libnm: add NMActivationStateFlags 2017-10-05 11:50:31 +02:00
org.freedesktop.NetworkManager.Device.Adsl.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.Device.Bluetooth.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.Device.Bond.xml all/trivial: grammar fix 2018-07-10 13:12:02 +02:00
org.freedesktop.NetworkManager.Device.Bridge.xml all/trivial: grammar fix 2018-07-10 13:12:02 +02:00
org.freedesktop.NetworkManager.Device.Dummy.xml libnm: add 'hw-address' property to NMDeviceDummy 2017-06-30 22:04:03 +02:00
org.freedesktop.NetworkManager.Device.Generic.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.Device.Infiniband.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.Device.IPTunnel.xml ip-tunnel: add support for tunnel flags 2018-01-05 18:25:08 +01:00
org.freedesktop.NetworkManager.Device.Lowpan.xml introspection: add o.fd.NM.Device.Lowpan interface 2018-06-26 16:21:55 +02:00
org.freedesktop.NetworkManager.Device.Macsec.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.Device.Macvlan.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.Device.Modem.xml wwan: expose the APN on the D-Bus 2019-06-05 18:36:48 +02:00
org.freedesktop.NetworkManager.Device.OlpcMesh.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.Device.OvsBridge.xml devices/ovs: expose slaves on D-Bus for OVS bridges and ports 2018-07-10 13:12:02 +02:00
org.freedesktop.NetworkManager.Device.OvsInterface.xml introspection: add o.fd.NM.Device.OvsInterface interface 2017-10-30 17:40:08 +01:00
org.freedesktop.NetworkManager.Device.OvsPort.xml devices/ovs: expose slaves on D-Bus for OVS bridges and ports 2018-07-10 13:12:02 +02:00
org.freedesktop.NetworkManager.Device.Ppp.xml device: add NMDevicePPP 2017-08-05 08:03:15 +02:00
org.freedesktop.NetworkManager.Device.Statistics.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.Device.Team.xml all/trivial: grammar fix 2018-07-10 13:12:02 +02:00
org.freedesktop.NetworkManager.Device.Tun.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.Device.Veth.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.Device.Vlan.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.Device.Vxlan.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.Device.WifiP2P.xml wifi-p2p: drop WiFi-P2P "group-owner" property from D-Bus API and libnm 2019-02-21 15:34:55 +01:00
org.freedesktop.NetworkManager.Device.WiMax.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.Device.Wired.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.Device.WireGuard.xml core: introduce NMDeviceWireGuard 2018-08-06 08:34:27 +02:00
org.freedesktop.NetworkManager.Device.Wireless.xml wifi: improve description of D-Bus' RequestScan() 2018-11-28 20:47:11 +01:00
org.freedesktop.NetworkManager.Device.Wpan.xml introspection: add o.fd.NM.Device.Wpan interface 2018-06-26 16:21:54 +02:00
org.freedesktop.NetworkManager.Device.xml all: say Wi-Fi instead of "wifi" or "WiFi" 2018-11-29 17:53:35 +01:00
org.freedesktop.NetworkManager.DHCP4Config.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.DHCP6Config.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.DnsManager.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.IP4Config.xml all: avoid byte ordering issue for IP4Config's Nameservers/WinsServers on D-Bus 2018-08-01 14:27:20 +02:00
org.freedesktop.NetworkManager.IP6Config.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.PPP.xml ppp: introduce SetIfindex pppd plugin D-Bus method 2018-01-10 15:36:29 +01:00
org.freedesktop.NetworkManager.SecretAgent.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.Settings.Connection.xml settings-connection: expose Filename property on D-Bus 2018-06-11 15:06:49 +02:00
org.freedesktop.NetworkManager.Settings.xml core,libnm: add AddConnection2() D-Bus API to block autoconnect from the start 2019-07-25 15:26:49 +02:00
org.freedesktop.NetworkManager.VPN.Connection.xml vpn-connection: use NMActiveConnectionStateReason 2017-03-17 10:21:19 +01:00
org.freedesktop.NetworkManager.VPN.Plugin.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.WifiP2PPeer.xml wifi-p2p: rename Wi-Fi P2P 2019-02-01 17:02:57 +01:00
org.freedesktop.NetworkManager.WiMax.Nsp.xml introspection: include short description everywhere 2017-03-17 10:15:11 +01:00
org.freedesktop.NetworkManager.xml libnm,core: Add ConnectivityCheckUri property and accessors 2019-07-22 21:03:09 +02:00