summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2004-06-01 03:02:26 +0000
committerHavoc Pennington <hp@redhat.com>2004-06-01 03:02:26 +0000
commite12863aae85dc131fcdd552edd6b32bd15702e12 (patch)
treeed7c53b2388c7136069043f3fa72f64927c95b6f /test
parent23e9d3d5040f51870f212ea70a94c9913c90e66b (diff)
2004-05-31 Havoc Pennington <hp@redhat.com>
* glib/dbus-gidl.c (method_info_add_arg): keep args sorted with "in" before "out" * glib/dbus-gobject.c (dbus_type_to_string): move to dbus-gutils.c * glib/dbus-glib-tool.c (main): set up to have a --self-test option that runs the tests, and start filling in some code including for starters just dumping the interfaces to stdout * glib/Makefile.am (INCLUDES): define DBUS_LOCALEDIR * test/data/valid-introspection-files/lots-of-types.xml: test of an example introspection file * glib/dbus-gparser.c (parser_check_doctype): doctype should be "node" (I think...)
Diffstat (limited to 'test')
-rw-r--r--test/data/valid-introspection-files/lots-of-types.xml93
1 files changed, 93 insertions, 0 deletions
diff --git a/test/data/valid-introspection-files/lots-of-types.xml b/test/data/valid-introspection-files/lots-of-types.xml
new file mode 100644
index 00000000..8e0e6053
--- /dev/null
+++ b/test/data/valid-introspection-files/lots-of-types.xml
@@ -0,0 +1,93 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Introspection 0.1//EN"
+ "http://www.freedesktop.org/software/dbus/introspection.dtd">
+<node>
+
+ <interface name="org.freedesktop.LotsOfTypesInterface">
+
+ <method name="SetInt32Value">
+ <arg name="theInt32" type="int32"/>
+ </method>
+ <method name="GetInt32Value">
+ <arg name="theInt32" type="int32" direction="out"/>
+ </method>
+ <signal name="Int32ValueChanged">
+ <arg name="newInt32Value" type="int32"/>
+ </signal>
+
+ <method name="SetUint32Value">
+ <arg name="theUint32" type="uint32"/>
+ </method>
+ <method name="GetUint32Value">
+ <arg name="theUint32" type="uint32" direction="out"/>
+ </method>
+ <signal name="Uint32ValueChanged">
+ <arg name="newUint32Value" type="uint32"/>
+ </signal>
+
+ <method name="SetInt64Value">
+ <arg name="theInt64" type="int64"/>
+ </method>
+ <method name="GetInt64Value">
+ <arg name="theInt64" type="int64" direction="out"/>
+ </method>
+ <signal name="Int64ValueChanged">
+ <arg name="newInt64Value" type="int64"/>
+ </signal>
+
+ <method name="SetUint64Value">
+ <arg name="theUint64" type="uint64"/>
+ </method>
+ <method name="GetUint64Value">
+ <arg name="theUint64" type="uint64" direction="out"/>
+ </method>
+ <signal name="Uint64ValueChanged">
+ <arg name="newUint64Value" type="uint64"/>
+ </signal>
+
+ <method name="SetBooleanValue">
+ <arg name="theBoolean" type="boolean"/>
+ </method>
+ <method name="GetBooleanValue">
+ <arg name="theBoolean" type="boolean" direction="out"/>
+ </method>
+ <signal name="BooleanValueChanged">
+ <arg name="newBooleanValue" type="boolean"/>
+ </signal>
+
+ <method name="SetStringValue">
+ <arg name="theString" type="string"/>
+ </method>
+ <method name="GetStringValue">
+ <arg name="theString" type="string" direction="out"/>
+ </method>
+ <signal name="StringValueChanged">
+ <arg name="newStringValue" type="string"/>
+ </signal>
+
+ <method name="SetDoubleValue">
+ <arg name="theDouble" type="double"/>
+ </method>
+ <method name="GetDoubleValue">
+ <arg name="theDouble" type="double" direction="out"/>
+ </method>
+ <signal name="DoubleValueChanged">
+ <arg name="newDoubleValue" type="double"/>
+ </signal>
+
+ </interface>
+
+ <interface name="org.freedesktop.ASecondInterface">
+ <method name="RandomFrobate">
+ <arg type="boolean" direction="in"/>
+ <arg type="string" direction="out"/>
+ <arg type="string" direction="out"/>
+ <arg type="int64"/> <!-- direction defaults to "in" -->
+ <arg type="string" direction="out"/>
+ <arg type="string" direction="out"/>
+ <arg type="int32" direction="in"/>
+ </method>
+ </interface>
+
+</node>
+