summaryrefslogtreecommitdiffstats
path: root/src/tests/sbus_codegen_tests.xml
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/sbus_codegen_tests.xml')
-rwxr-xr-xsrc/tests/sbus_codegen_tests.xml45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/tests/sbus_codegen_tests.xml b/src/tests/sbus_codegen_tests.xml
new file mode 100755
index 000000000..0def3585a
--- /dev/null
+++ b/src/tests/sbus_codegen_tests.xml
@@ -0,0 +1,45 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node>
+ <!--
+ This file should exercise as many aspects of the sbus_codegen as
+ possible. See sbus_codegen_test.c for verification.
+ -->
+
+ <!--
+ This is an interface, it will get a sbus_interface_meta struct.
+ Its name will be com_planetexpress_Ship__meta, since no c symbol
+ is specified.
+ -->
+ <interface name="com.planetexpress.Ship">
+ <!-- A property -->
+ <property name="Color" type="s" access="read"/>
+
+ <!-- A method with two in and one out argument -->
+ <method name="MoveUniverse">
+ <!-- This is a boolean arg -->
+ <arg name="smoothly" type="b" direction="in"/>
+ <!-- This is an uint32 arg -->
+ <arg name="speed_factor" type="u" direction="in"/>
+ <!-- This is a string arg -->
+ <arg name="where_we_crashed" type="s" direction="out"/>
+ </method>
+
+ <!-- A signal with one argument -->
+ <signal name="BecameSentient">
+ <arg name="gender" type="s"/>
+ </signal>
+ </interface>
+
+ <!--
+ Another interface. It's C name will be test_pilot, since we've overridden
+ the c symbol name.
+ -->
+ <interface name="com.planetexpress.Pilot">
+ <annotation value="test_pilot" name="org.freedesktop.DBus.GLib.CSymbol"/>
+
+ <!-- A property -->
+ <property name="FullName" type="s" access="readwrite"/>
+ </interface>
+
+</node>