sbus_codegen_tests.xml revision b699c4d7f85a5404be1d1ee9450331aea869b886
e59faf65ce864fe95dc00f5d52b8323cdbd0608aTimo Sirainen<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen<node>
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen <!--
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen This file should exercise as many aspects of the sbus_codegen as
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen possible. See sbus_codegen_test.c for verification.
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen -->
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen
1d3b9fce06b466bcf64f9ab7b622f3a6e4e939baTimo Sirainen <!--
1d3b9fce06b466bcf64f9ab7b622f3a6e4e939baTimo Sirainen This is an interface, it will get a sbus_interface_meta struct.
3ba9a079592f46e94ce846e5aa80e4d479cd5e41Timo Sirainen Its name will be com_planetexpress_Ship__meta, since no c symbol
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen is specified.
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen -->
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen <interface name="com.planetexpress.Ship">
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen <!-- A property -->
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen <property name="Color" type="s" access="read"/>
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen
1d3b9fce06b466bcf64f9ab7b622f3a6e4e939baTimo Sirainen <!-- A method with two in and one out argument -->
1d3b9fce06b466bcf64f9ab7b622f3a6e4e939baTimo Sirainen <method name="MoveUniverse">
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen <!-- This is a boolean arg -->
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen <arg name="smoothly" type="b" direction="in"/>
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen <!-- This is an uint32 arg -->
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen <arg name="speed_factor" type="u" direction="in"/>
4e56e6408815c04f2e5b904a648a366a2dcbd408Timo Sirainen <!-- This is a string arg -->
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen <arg name="where_we_crashed" type="s" direction="out"/>
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen </method>
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen <!-- A signal with one argument -->
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen <signal name="BecameSentient">
1d3b9fce06b466bcf64f9ab7b622f3a6e4e939baTimo Sirainen <arg name="gender" type="s"/>
1d3b9fce06b466bcf64f9ab7b622f3a6e4e939baTimo Sirainen </signal>
1d3b9fce06b466bcf64f9ab7b622f3a6e4e939baTimo Sirainen </interface>
1d3b9fce06b466bcf64f9ab7b622f3a6e4e939baTimo Sirainen
1d3b9fce06b466bcf64f9ab7b622f3a6e4e939baTimo Sirainen <!--
1d3b9fce06b466bcf64f9ab7b622f3a6e4e939baTimo Sirainen Another interface. It's C name will be test_pilot, since we've overridden
1d3b9fce06b466bcf64f9ab7b622f3a6e4e939baTimo Sirainen the c symbol name.
1d3b9fce06b466bcf64f9ab7b622f3a6e4e939baTimo Sirainen -->
1d3b9fce06b466bcf64f9ab7b622f3a6e4e939baTimo Sirainen <interface name="com.planetexpress.Pilot">
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen <annotation value="test_pilot" name="org.freedesktop.DBus.GLib.CSymbol"/>
3ba9a079592f46e94ce846e5aa80e4d479cd5e41Timo Sirainen
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen <!-- A property -->
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen <property name="FullName" type="s" access="readwrite"/>
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen </interface>
1d3b9fce06b466bcf64f9ab7b622f3a6e4e939baTimo Sirainen
7891c8e6debdcfec552cb1beea2a0230fe89957bTimo Sirainen</node>
7891c8e6debdcfec552cb1beea2a0230fe89957bTimo Sirainen