summaryrefslogtreecommitdiff
path: root/introspection
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2018-10-30 16:40:40 +0100
committerThomas Haller <thaller@redhat.com>2018-11-17 12:15:40 +0100
commit43c19d755a59e07fb6135c6885b1d3723ec15498 (patch)
treee835b5ac49e33da8eb39e6f699e8de8f443ef179 /introspection
parent37e8c53eeed579fe34a68819cd12f3295d581394 (diff)
core: Add an AddAndActivateConnection2 routine with options parameter
This adds a new routine to be able to handle an arbitrary set of further options for AddAndActivateConnection. Note that no options are accepted for now.
Diffstat (limited to 'introspection')
-rw-r--r--introspection/org.freedesktop.NetworkManager.xml28
1 files changed, 28 insertions, 0 deletions
diff --git a/introspection/org.freedesktop.NetworkManager.xml b/introspection/org.freedesktop.NetworkManager.xml
index 6c6ec282a..356297722 100644
--- a/introspection/org.freedesktop.NetworkManager.xml
+++ b/introspection/org.freedesktop.NetworkManager.xml
@@ -100,6 +100,8 @@
(automatically filling in missing settings with the capabilities of the
given device and specific object), then activate the new connection.
Cannot be used for VPN connections at this time.
+
+ See also AddAndActivateConnection2.
-->
<method name="AddAndActivateConnection">
<arg name="connection" type="a{sa{sv}}" direction="in"/>
@@ -110,6 +112,32 @@
</method>
<!--
+ AddAndActivateConnection2:
+ @connection: Connection settings and properties; if incomplete missing settings will be automatically completed using the given device and specific object.
+ @device: The object path of device to be activated using the given connection.
+ @specific_object: The path of a connection-type-specific object this activation should use. This parameter is currently ignored for wired and mobile broadband connections, and the value of "/" should be used (ie, no specific object). For WiFi connections, pass the object path of a specific AP from the card's scan list, which will be used to complete the details of the newly added connection.
+ @options: Further options for the method call.
+ @path: Object path of the new connection that was just added.
+ @active_connection: The path of the active connection object representing this active connection.
+
+ Adds a new connection using the given details (if any) as a template
+ (automatically filling in missing settings with the capabilities of the
+ given device and specific object), then activate the new connection.
+ Cannot be used for VPN connections at this time.
+
+ This method extends AddAndActivateConnection to allow passing further
+ parameters. At this time no further options are supported.
+ -->
+ <method name="AddAndActivateConnection2">
+ <arg name="connection" type="a{sa{sv}}" direction="in"/>
+ <arg name="device" type="o" direction="in"/>
+ <arg name="specific_object" type="o" direction="in"/>
+ <arg name="options" type="a{sv}" direction="in"/>
+ <arg name="path" type="o" direction="out"/>
+ <arg name="active_connection" type="o" direction="out"/>
+ </method>
+
+ <!--
DeactivateConnection:
@active_connection: The currently active connection to deactivate.