mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 09:10:10 +01:00
Add a GetActiveConnections() method on the Manager object. * src/nm-manager.c src/nm-manager.h introspection/nm-manager.xml - (connection_get_settings_cb): keep connection type around too - (impl_manager_get_active_connections, add_one_connection_element): implement; returns all active connections and what devices they apply to * libnm-glib/nm-client.c libnm-glib/nm-client.h introspection/nm-manager-client.xml - (nm_client_get_devices): GPtrArray elements are allocated and owned by the caller; free here to avoid memory leak - (nm_client_get_active_connections): implement; return the list of active connections - (nm_client_free_active_connection_element): implement; free an element of the GSList returned by nm_client_get_active_connections() git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2927 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
74 lines
2.5 KiB
XML
74 lines
2.5 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<!--
|
|
READ ME! READ ME! READ ME! READ ME! READ ME!
|
|
|
|
This file needs to be kept in sync with nm-manager-client.xml with the exception of
|
|
the legacy methods at the end of this file.
|
|
-->
|
|
|
|
<node name="/">
|
|
<interface name="org.freedesktop.NetworkManager">
|
|
<method name="GetDevices">
|
|
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_get_devices"/>
|
|
<arg name="devices" type="ao" direction="out"/>
|
|
</method>
|
|
|
|
<method name="ActivateDevice">
|
|
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_activate_device"/>
|
|
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
|
|
<arg name="device" type="o" direction="in"/>
|
|
<arg name="service_name" type="s" direction="in"/>
|
|
<arg name="connection" type="o" direction="in"/>
|
|
<arg name="specific_object" type="o" direction="in"/>
|
|
</method>
|
|
|
|
<method name="GetActiveConnections">
|
|
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_get_active_connections"/>
|
|
<!-- 'connections' is an array of structs
|
|
consisting of the following elements:
|
|
service name
|
|
connection object path
|
|
specific object
|
|
array of (device object path)
|
|
-->
|
|
<arg name="connections" type="a(sooao)" direction="out"/>
|
|
</method>
|
|
|
|
<method name="Sleep">
|
|
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_sleep"/>
|
|
<arg name="sleep" type="b" direction="in"/>
|
|
</method>
|
|
|
|
<property name="WirelessEnabled" type="b" access="readwrite"/>
|
|
<property name="State" type="u" access="read"/>
|
|
|
|
<signal name="StateChange">
|
|
<arg name="state" type="u"/>
|
|
</signal>
|
|
|
|
<signal name="DeviceAdded">
|
|
<arg name="state" type="o"/>
|
|
</signal>
|
|
|
|
<signal name="DeviceRemoved">
|
|
<arg name="state" type="o"/>
|
|
</signal>
|
|
|
|
<!-- Legacy methods to maintain backwards compatibility for 0.6 branch. -->
|
|
|
|
<method name="sleep">
|
|
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_legacy_sleep"/>
|
|
</method>
|
|
|
|
<method name="wake">
|
|
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_legacy_wake"/>
|
|
</method>
|
|
|
|
<method name="state">
|
|
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_legacy_state"/>
|
|
<arg name="state" type="u" direction="out"/>
|
|
</method>
|
|
|
|
</interface>
|
|
</node>
|