add_connection2


Description:

[ Version ( since = "1.20" ) ]
public async RemoteConnection add_connection2 (Variant settings, SettingsAddConnection2Flags flags, Variant? args, bool ignore_out_result, Cancellable? cancellable, out Variant? out_result) throws Error

Call AddConnection2 D-Bus API asynchronously.

Parameters:

this

the nmclient

settings

the "a{sa{sv}}" Variant with the content of the setting.

flags

the nmsettingsaddconnection2flags argument.

args

the "a{sv}" Variant with extra argument or null for no extra arguments.

ignore_out_result

this function wraps AddConnection2, which has an additional result "a{sv}" output parameter. By setting this to true, you signal that you are not interested in that output parameter. This allows the function to fall back to AddConnection and AddConnectionUnsaved, which is interesting if you run against an older server version that does not yet provide AddConnection2. By setting this to false, the function under the hood always calls AddConnection2.

cancellable

a Cancellable, or null

callback

callback to be called when the add operation completes

user_data

caller-specific data passed to callback