mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-02 03:00:37 +01:00
* libnm-glib/Makefile.am: Use nm-manager-client.xml to produce
* nm-client-bindings.
* introspection/nm-manager-client.xml: Add a horrible horrbile
* hack to work around
an issue with dbus-glib bindings generator. The issue is, the
generated C caller
functions for dbus methods "Sleep(bool)" and "sleep()" both have
the same function
name and different arguments and it won't compile anymore. To
fix this, we now have
two copies of nm-manager.xml file. nm-manager.xml contains the
actual interface,
that is new API + compatibility API and used by the daemon. The
other,
nm-manager-client.xml is only the new API without compatibility
bits and is used
by libnm-glib to make it compile.
* introspection/nm-manager.xml: Define compatibility methods
* (sleep, wake, state).
* src/nm-manager.c (impl_manager_legacy_sleep)
(impl_manager_legacy_wake, impl_manager_legacy_state): Implement
the compatibility
interface functions for 0.6 branch.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2688 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
52 lines
1.5 KiB
XML
52 lines
1.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="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"/>
|
|
</method>
|
|
|
|
</interface>
|
|
</node>
|