summaryrefslogtreecommitdiff
path: root/introspection
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-01-10 23:39:12 -0600
committerDan Williams <dcbw@redhat.com>2011-01-10 23:39:12 -0600
commit215306f5a1e4dc38ec02a484c31470bb048d668b (patch)
treea4a62c495dd81427bfbe18119446914085e5f299 /introspection
parentbf98469b8d7b9efe0dfd6e8117e1bcff30ef2c16 (diff)
core: add AddAndActivate D-Bus method
Given connection details, complete the connection as well as possible using the given specific object and device, add it to system settings, and activate it all in one method.
Diffstat (limited to 'introspection')
-rw-r--r--introspection/nm-manager.xml49
1 files changed, 49 insertions, 0 deletions
diff --git a/introspection/nm-manager.xml b/introspection/nm-manager.xml
index 92a78b349a..5e087a2634 100644
--- a/introspection/nm-manager.xml
+++ b/introspection/nm-manager.xml
@@ -66,6 +66,55 @@
</tp:possible-errors>
</method>
+ <method name="AddAndActivateConnection">
+ <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_add_and_activate_connection"/>
+ <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
+ <tp:docstring>
+ 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.
+ </tp:docstring>
+ <arg name="connection" type="a{sa{sv}}" direction="in">
+ <tp:docstring>
+ Connection settings and properties; if incomplete missing settings will
+ be automatically completed using the given device and specific object.
+ </tp:docstring>
+ </arg>
+ <arg name="device" type="o" direction="in">
+ <tp:docstring>
+ The object path of device to be activated using the given connection.
+ </tp:docstring>
+ </arg>
+ <arg name="specific_object" type="o" direction="in">
+ <tp:docstring>
+ 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.
+ </tp:docstring>
+ </arg>
+ <arg name="path" type="o" direction="out">
+ <tp:docstring>
+ Object path of the new connection that was just added.
+ </tp:docstring>
+ </arg>
+ <arg name="active_connection" type="o" direction="out">
+ <tp:docstring>
+ The path of the active connection object representing this active connection.
+ </tp:docstring>
+ </arg>
+ <tp:possible-errors>
+ <tp:error name="org.freedesktop.NetworkManager.Error.UnknownConnection"/>
+ <tp:error name="org.freedesktop.NetworkManager.Error.UnknownDevice"/>
+ <tp:error name="org.freedesktop.NetworkManager.Error.ConnectionInvalid">
+ <tp:docstring>The connection is invalid for this device.</tp:docstring>
+ </tp:error>
+ </tp:possible-errors>
+ </method>
+
<method name="DeactivateConnection">
<tp:docstring>
Deactivate an active connection.