Allow to define an Introspectable interface in XML files.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/12/head
Slávek Banko 2 years ago
parent 65f7663b4c
commit c6b84c6ed2
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1,13 +1,11 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node> <node>
<!--
<interface name="org.freedesktop.DBus.Introspectable"> <interface name="org.freedesktop.DBus.Introspectable">
<method name="Introspect"> <method name="Introspect">
<arg name="xml" type="s" direction="out"/> <arg name="xml" type="s" direction="out"/>
</method> </method>
</interface> </interface>
-->
<interface name="org.bluez.MediaPlayer1"> <interface name="org.bluez.MediaPlayer1">
<method name="Play"/> <method name="Play"/>
<method name="Pause"/> <method name="Pause"/>

@ -1,13 +1,11 @@
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node> <node>
<!--
<interface name="org.freedesktop.DBus.Introspectable"> <interface name="org.freedesktop.DBus.Introspectable">
<method name="Introspect"> <method name="Introspect">
<arg name="xml" type="s" direction="out" /> <arg name="xml" type="s" direction="out" />
</method> </method>
</interface> </interface>
-->
<interface name="org.bluez.Adapter1"> <interface name="org.bluez.Adapter1">
<method name="StartDiscovery"></method> <method name="StartDiscovery"></method>
<method name="SetDiscoveryFilter"> <method name="SetDiscoveryFilter">

@ -1,12 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<node> <node>
<!--
<interface name="org.freedesktop.DBus.Introspectable"> <interface name="org.freedesktop.DBus.Introspectable">
<method name="Introspect"> <method name="Introspect">
<arg name="xml" type="s" direction="out" /> <arg name="xml" type="s" direction="out" />
</method> </method>
</interface> </interface>
-->
<interface name="org.bluez.Device1"> <interface name="org.bluez.Device1">
<method name="Disconnect"> <method name="Disconnect">
<annotation name="org.freedesktop.DBus.GLib.Async"/> <annotation name="org.freedesktop.DBus.GLib.Async"/>

@ -1,13 +1,11 @@
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node> <node>
<!--
<interface name="org.freedesktop.DBus.Introspectable"> <interface name="org.freedesktop.DBus.Introspectable">
<method name="Introspect"> <method name="Introspect">
<arg name="xml" type="s" direction="out" /> <arg name="xml" type="s" direction="out" />
</method> </method>
</interface> </interface>
-->
<interface name="org.bluez.AgentManager1"> <interface name="org.bluez.AgentManager1">
<method name="RegisterAgent"> <method name="RegisterAgent">
<arg name="agent" type="o" direction="in" /> <arg name="agent" type="o" direction="in" />

@ -1,12 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- https://github.com/r10r/bluez/blob/master/doc/obex-agent-api.txt --> <!-- https://github.com/r10r/bluez/blob/master/doc/obex-agent-api.txt -->
<node name="/org/trinitydesktop/tdeobex"> <node name="/org/trinitydesktop/tdeobex">
<!-- <interface name="org.freedesktop.DBus.Introspectable"> <interface name="org.freedesktop.DBus.Introspectable">
<method name="Introspect"> <method name="Introspect">
<arg name="xml" type="s" direction="out"/> <arg name="xml" type="s" direction="out"/>
</method> </method>
</interface> </interface>
-->
<interface name="org.bluez.obex.Agent1"> <interface name="org.bluez.obex.Agent1">
<method name="Release"> <method name="Release">
<annotation name="org.freedesktop.DBus.GLib.Async"/> <annotation name="org.freedesktop.DBus.GLib.Async"/>

@ -2,13 +2,11 @@
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<!-- https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/obex-api.txt --> <!-- https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/obex-api.txt -->
<node name="/org/bluez/obex"> <node name="/org/bluez/obex">
<!--
<interface name="org.freedesktop.DBus.Introspectable"> <interface name="org.freedesktop.DBus.Introspectable">
<method name="Introspect"> <method name="Introspect">
<arg name="xml" type="s" direction="out"/> <arg name="xml" type="s" direction="out"/>
</method> </method>
</interface> </interface>
-->
<interface name="org.bluez.obex.AgentManager1"> <interface name="org.bluez.obex.AgentManager1">
<method name="RegisterAgent"> <method name="RegisterAgent">
<arg name="agent" type="o" direction="in" /> <arg name="agent" type="o" direction="in" />

@ -1,13 +1,11 @@
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node> <node>
<!--
<interface name="org.freedesktop.DBus.Introspectable"> <interface name="org.freedesktop.DBus.Introspectable">
<method name="Introspect"> <method name="Introspect">
<arg name="xml" type="s" direction="out" /> <arg name="xml" type="s" direction="out" />
</method> </method>
</interface> </interface>
-->
<interface name="org.freedesktop.DBus.ObjectManager"> <interface name="org.freedesktop.DBus.ObjectManager">
<method name="GetManagedObjects"> <method name="GetManagedObjects">
<arg name="objects" type="a{oa{sa{sv}}}" direction="out" /> <arg name="objects" type="a{oa{sa{sv}}}" direction="out" />

@ -1,12 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<node name="/org/trinitydesktop/tdebluez"> <node name="/org/trinitydesktop/tdebluez">
<!-- The Introspectable Interface gets autogenerated <interface name="org.freedesktop.DBus.Introspectable">
<interface name="org.freedesktop.DBus.Introspectable"> <method name="Introspect">
<method name="Introspect"> <arg name="xml" type="s" direction="out" />
<arg name="xml" type="s" direction="out"/> </method>
</method> </interface>
</interface>
-->
<interface name="org.bluez.Agent1"> <interface name="org.bluez.Agent1">
<method name="Release"> <method name="Release">
</method> </method>

Loading…
Cancel
Save