• Thomas Haller's avatar
    core,libnm: add AddConnection2() D-Bus API to block autoconnect from the start · 22c8721f
    Thomas Haller authored
    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
    22c8721f
Name
Last commit
Last update
..
tests Loading commit data...
NetworkManager.h Loading commit data...
generate-plugin-docs.pl Loading commit data...
generate-setting-docs.py Loading commit data...
libnm.pc.in Loading commit data...
libnm.ver Loading commit data...
meson.build Loading commit data...
nm-access-point.c Loading commit data...
nm-access-point.h Loading commit data...
nm-active-connection.c Loading commit data...
nm-active-connection.h Loading commit data...
nm-autoptr.h Loading commit data...
nm-checkpoint.c Loading commit data...
nm-checkpoint.h Loading commit data...
nm-client.c Loading commit data...
nm-client.h Loading commit data...
nm-dbus-helpers.c Loading commit data...
nm-dbus-helpers.h Loading commit data...
nm-device-6lowpan.c Loading commit data...
nm-device-6lowpan.h Loading commit data...
nm-device-adsl.c Loading commit data...
nm-device-adsl.h Loading commit data...
nm-device-bond.c Loading commit data...
nm-device-bond.h Loading commit data...
nm-device-bridge.c Loading commit data...
nm-device-bridge.h Loading commit data...
nm-device-bt.c Loading commit data...
nm-device-bt.h Loading commit data...
nm-device-dummy.c Loading commit data...
nm-device-dummy.h Loading commit data...
nm-device-ethernet.c Loading commit data...
nm-device-ethernet.h Loading commit data...
nm-device-generic.c Loading commit data...
nm-device-generic.h Loading commit data...
nm-device-infiniband.c Loading commit data...
nm-device-infiniband.h Loading commit data...
nm-device-ip-tunnel.c Loading commit data...
nm-device-ip-tunnel.h Loading commit data...
nm-device-macsec.c Loading commit data...
nm-device-macsec.h Loading commit data...
nm-device-macvlan.c Loading commit data...
nm-device-macvlan.h Loading commit data...
nm-device-modem.c Loading commit data...
nm-device-modem.h Loading commit data...
nm-device-olpc-mesh.c Loading commit data...
nm-device-olpc-mesh.h Loading commit data...
nm-device-ovs-bridge.c Loading commit data...
nm-device-ovs-bridge.h Loading commit data...
nm-device-ovs-interface.c Loading commit data...
nm-device-ovs-interface.h Loading commit data...
nm-device-ovs-port.c Loading commit data...
nm-device-ovs-port.h Loading commit data...
nm-device-ppp.c Loading commit data...
nm-device-ppp.h Loading commit data...
nm-device-private.h Loading commit data...
nm-device-team.c Loading commit data...
nm-device-team.h Loading commit data...
nm-device-tun.c Loading commit data...
nm-device-tun.h Loading commit data...
nm-device-vlan.c Loading commit data...
nm-device-vlan.h Loading commit data...
nm-device-vxlan.c Loading commit data...
nm-device-vxlan.h Loading commit data...
nm-device-wifi-p2p.c Loading commit data...
nm-device-wifi-p2p.h Loading commit data...
nm-device-wifi.c Loading commit data...
nm-device-wifi.h Loading commit data...
nm-device-wimax.c Loading commit data...
nm-device-wimax.h Loading commit data...
nm-device-wireguard.c Loading commit data...
nm-device-wireguard.h Loading commit data...
nm-device-wpan.c Loading commit data...
nm-device-wpan.h Loading commit data...
nm-device.c Loading commit data...
nm-device.h Loading commit data...
nm-dhcp-config.c Loading commit data...
nm-dhcp-config.h Loading commit data...
nm-dhcp4-config.c Loading commit data...
nm-dhcp4-config.h Loading commit data...
nm-dhcp6-config.c Loading commit data...
nm-dhcp6-config.h Loading commit data...
nm-dns-manager.c Loading commit data...
nm-dns-manager.h Loading commit data...
nm-enum-types.c.template Loading commit data...
nm-enum-types.h.template Loading commit data...
nm-ip-config.c Loading commit data...
nm-ip-config.h Loading commit data...
nm-ip4-config.c Loading commit data...
nm-ip4-config.h Loading commit data...
nm-ip6-config.c Loading commit data...
nm-ip6-config.h Loading commit data...
nm-libnm-utils.c Loading commit data...
nm-libnm-utils.h Loading commit data...
nm-manager.c Loading commit data...
nm-manager.h Loading commit data...
nm-object-private.h Loading commit data...
nm-object.c Loading commit data...
nm-object.h Loading commit data...
nm-remote-connection-private.h Loading commit data...
nm-remote-connection.c Loading commit data...
nm-remote-connection.h Loading commit data...
nm-remote-settings.c Loading commit data...
nm-remote-settings.h Loading commit data...
nm-secret-agent-old.c Loading commit data...
nm-secret-agent-old.h Loading commit data...
nm-types.h Loading commit data...
nm-vpn-connection.c Loading commit data...
nm-vpn-connection.h Loading commit data...
nm-vpn-editor.c Loading commit data...
nm-vpn-editor.h Loading commit data...
nm-vpn-plugin-old.c Loading commit data...
nm-vpn-plugin-old.h Loading commit data...
nm-vpn-service-plugin.c Loading commit data...
nm-vpn-service-plugin.h Loading commit data...
nm-wifi-p2p-peer.c Loading commit data...
nm-wifi-p2p-peer.h Loading commit data...
nm-wimax-nsp.c Loading commit data...
nm-wimax-nsp.h Loading commit data...