2 <!-- Fully Loaded Interface -->
3 <interface name="org.project.Bar">
4 <annotation name="org.gtk.GDBus.DocString" value="The org.project.Bar interface is very complicated."/>
5 <annotation name="org.gtk.GDBus.DocString.Short" value="Brief interface doc string"/>
7 <method name="HelloWorld">
8 <annotation name="org.gtk.GDBus.DocString" value="Method <emphasis>documentation</emphasis> blablablabla."/>
9 <annotation name="ExistingAnnotation" value="blah"/>
10 <annotation name="org.gtk.GDBus.ExistingInternalAnnotation" value="booh"/>
11 <arg name="greeting" direction="in" type="s">
12 <annotation name="org.gtk.GDBus.DocString" value="in param doc"/>
14 <arg name="response" direction="out" type="s">
15 <annotation name="org.gtk.GDBus.DocString" value="out param doc"/>
19 <method name="TestPrimitiveTypes">
20 <arg direction="in" type="y" name="val_byte" />
21 <arg direction="in" type="b" name="val_boolean" />
22 <arg direction="in" type="n" name="val_int16" />
23 <arg direction="in" type="q" name="val_uint16" />
24 <arg direction="in" type="i" name="val_int32" />
25 <arg direction="in" type="u" name="val_uint32" />
26 <arg direction="in" type="x" name="val_int64" />
27 <arg direction="in" type="t" name="val_uint64" />
28 <arg direction="in" type="d" name="val_double" />
29 <arg direction="in" type="s" name="val_string" />
30 <arg direction="in" type="o" name="val_objpath" />
31 <arg direction="in" type="g" name="val_signature" />
32 <arg direction="in" type="ay" name="val_bytestring" />
33 <arg direction="out" type="y" name="ret_byte" />
34 <arg direction="out" type="b" name="ret_boolean" />
35 <arg direction="out" type="n" name="ret_int16" />
36 <arg direction="out" type="q" name="ret_uint16" />
37 <arg direction="out" type="i" name="ret_int32" />
38 <arg direction="out" type="u" name="ret_uint32" />
39 <arg direction="out" type="x" name="ret_int64" />
40 <arg direction="out" type="t" name="ret_uint64" />
41 <arg direction="out" type="d" name="ret_double" />
42 <arg direction="out" type="s" name="ret_string" />
43 <arg direction="out" type="o" name="ret_objpath" />
44 <arg direction="out" type="g" name="ret_signature" />
45 <arg direction="out" type="ay" name="ret_bytestring" />
48 <method name="TestNonPrimitiveTypes">
49 <arg direction="in" type="a{ss}" name="dict_s_to_s" />
50 <arg direction="in" type="a{s(ii)}" name="dict_s_to_pairs" />
51 <arg direction="in" type="(iss)" name="a_struct" />
52 <arg direction="in" type="as" name="array_of_strings" />
53 <arg direction="out" type="as" name="ret_array_of_strings" />
54 <arg direction="in" type="ao" name="array_of_objpaths" />
55 <arg direction="out" type="ao" name="ret_array_of_objpaths" />
56 <arg direction="in" type="ag" name="array_of_signatures" />
57 <arg direction="out" type="ag" name="ret_array_of_signatures" />
58 <arg direction="in" type="aay" name="array_of_bytestrings" />
59 <arg direction="out" type="aay" name="ret_array_of_bytestrings" />
60 <arg direction="out" type="ay" name="result" />
63 <method name="RequestSignalEmission">
64 <arg direction="in" type="i" name="which_one" />
67 <method name="RequestMultiPropertyMods"/>
69 <method name="UnimplementedMethod"/>
71 <method name="PropertyCancellation"/>
73 <signal name="TestSignal">
74 <annotation name="org.gtk.GDBus.DocString" value="Signal documentation."/>
75 <arg type="i" name="val_int32">
76 <annotation name="org.gtk.GDBus.DocString" value="Signal param docs"/>
78 <arg type="as" name="array_of_strings" />
79 <arg type="aay" name="array_of_bytestrings" />
80 <arg type="a{s(ii)}" name="dict_s_to_pairs" />
83 <signal name="AnotherSignal">
84 <arg type="s" name="word" />
87 <property name="y" type="y" access="readwrite">
88 <annotation name="org.gtk.GDBus.DocString" value="<para>Property docs, yah...</para><para>Second paragraph.</para>"/>
90 <property name="b" type="b" access="readwrite"/>
91 <property name="n" type="n" access="readwrite"/>
92 <property name="q" type="q" access="readwrite"/>
93 <property name="i" type="i" access="readwrite"/>
94 <property name="u" type="u" access="readwrite"/>
95 <property name="x" type="x" access="readwrite"/>
96 <property name="t" type="t" access="readwrite"/>
97 <property name="d" type="d" access="readwrite"/>
98 <property name="s" type="s" access="readwrite"/>
99 <property name="o" type="o" access="readwrite"/>
100 <property name="g" type="g" access="readwrite"/>
101 <property name="ay" type="ay" access="readwrite"/>
102 <property name="as" type="as" access="readwrite"/>
103 <property name="aay" type="aay" access="readwrite"/>
104 <property name="ao" type="ao" access="readwrite"/>
105 <property name="ag" type="ag" access="readwrite"/>
106 <property name="FinallyNormalName" type="s" access="readwrite"/>
107 <property name="ReadonlyProperty" type="s" access="read"/>
108 <property name="WriteonlyProperty" type="s" access="write"/>
110 <!-- unset properties -->
111 <property name="unset_i" type="i" access="readwrite"/>
112 <property name="unset_d" type="d" access="readwrite"/>
113 <property name="unset_s" type="s" access="readwrite"/>
114 <property name="unset_o" type="o" access="readwrite"/>
115 <property name="unset_g" type="g" access="readwrite"/>
116 <property name="unset_ay" type="ay" access="readwrite"/>
117 <property name="unset_as" type="as" access="readwrite"/>
118 <property name="unset_ao" type="ao" access="readwrite"/>
119 <property name="unset_ag" type="ag" access="readwrite"/>
120 <property name="unset_struct" type="(idsogayasaoag)" access="readwrite"/>
121 </interface> <!-- End org.project.Bar -->
124 <interface name="org.project.Bar.Frobnicator">
125 <method name="RandomMethod"/>
129 <interface name="org.project.Baz">
132 <!-- Outside D-Bus prefix -->
133 <interface name="com.acme.Coyote">
135 <method name="Sleep"/>
136 <method name="Attack"/>
137 <signal name="Surprised"/>
138 <property name="Mood" type="s" access="read"/>
141 <!-- force various names -->
142 <interface name="com.acme.Rocket">
143 <!-- Forcing the typename via an annotation -->
144 <annotation name="org.gtk.GDBus.C.Name" value="Rocket123"/>
146 <!-- ditto method -->
147 <method name="Ignite">
148 <annotation name="org.gtk.GDBus.C.Name" value="ignite_xyz"/>
151 <!-- ditto signal -->
152 <signal name="Exploded">
153 <annotation name="org.gtk.GDBus.C.Name" value="exploded-xyz"/>
156 <!-- ditto property -->
157 <property name="Speed" type="d" access="read">
158 <annotation name="org.gtk.GDBus.C.Name" value="speed-xyz"/>
161 <property name="Direction" type="(ddd)" access="read"/>
163 <!-- Check there's no conflict with the GType iface_name_get_type() function -->
164 <property name="Type" type="s" access="read"/>
167 <!-- Test interface for forcing use of GVariant -->
168 <interface name="org.project.Bat">
170 <!-- Forcing GVariant for types that would be mapped -->
171 <method name="ForceMethod">
172 <arg name="force_in_i" type="i" direction="in">
173 <annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
175 <arg name="force_in_s" type="s" direction="in">
176 <annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
178 <arg name="force_in_ay" type="ay" direction="in">
179 <annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
181 <arg name="force_in_struct" type="(i)" direction="in">
182 <annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
184 <arg name="force_out_i" type="i" direction="out">
185 <annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
187 <arg name="force_out_s" type="s" direction="out">
188 <annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
190 <arg name="force_out_ay" type="ay" direction="out">
191 <annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
193 <arg name="force_out_struct" type="(i)" direction="out">
194 <annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
198 <signal name="ForceSignal">
199 <arg name="force_i" type="i">
200 <annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
202 <arg name="force_s" type="s">
203 <annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
205 <arg name="force_ay" type="ay">
206 <annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
208 <arg name="force_struct" type="(i)">
209 <annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
213 <property name="force_i" type="i" access="readwrite">
214 <annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
216 <property name="force_s" type="s" access="readwrite">
217 <annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
219 <property name="force_ay" type="ay" access="readwrite">
220 <annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
222 <property name="force_struct" type="(i)" access="readwrite">
223 <annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
226 </interface> <!-- End org.project.Bat -->
228 <!-- Test interface for g-authorized-method -->
229 <interface name="org.project.Authorize">
230 <method name="CheckNotAuthorized"/>
231 <method name="CheckAuthorized"/>
232 <method name="CheckNotAuthorizedFromObject"/>
233 </interface> <!-- End org.project.Authorize -->
235 <!-- Test interfaces for handling methods in a thread -->
236 <interface name="org.project.MethodThreads">
237 <method name="GetSelf">
238 <arg name="self_pointer" direction="out" type="s"/>
240 </interface> <!-- End org.project.MethodThreads -->
243 org.project.InlineDocs:
244 @short_description: The short description
246 Here is the <emphasis>longer</emphasis> description.
250 <interface name="org.project.InlineDocs">
254 @greeting: The docs for greeting parameter.
255 @response: The docs for response parameter.
257 The docs for the actual method.
261 Test of inline links: The #org.project.Bar D-Bus interface,
262 org.project.Bar.HelloWorld() method, the
263 #org.project.Bar::TestSignal, the
264 #org.project.InlineDocs:Property3 property.
266 <method name="FooMethod">
267 <arg name="greeting" direction="in" type="s"/>
268 <arg name="response" direction="out" type="s"/>
271 <!-- Method2: foo -->
272 <method name="Method2">
273 <arg name="greeting" direction="in" type="s"/>
274 <arg name="response" direction="out" type="s"/>
279 @blah: The docs for blah parameter.
280 @boo: The docs for boo parameter.
282 The docs for the actual signal.
284 <signal name="BarSignal">
285 <!-- Non-Doc comment -->
286 <arg name="blah" type="s"/>
287 <arg name="boo" type="s"/>
290 <!-- BazProperty: The docs for the property. -->
291 <property name="BazProperty" type="s" access="read"/>
293 <!-- Property2: Another property
294 This should be a new paragraph.
296 <property name="Property2" type="s" access="read"/>
300 This should NOT be a new paragraph.
302 <property name="Property3" type="s" access="read"/>
305 First line. With trailing whitespace.
306 Second line (same paragraph).
308 <property name="Property4" type="s" access="read"/>
311 First line (second paragraph). With trailing whitespace.
312 Second line (same paragraph).
315 2 should include indented space
321 <property name="Property5" type="s" access="read"/>
326 Here's some fancy use of XML inside the comment.
329 <term><option>namespace</option></term>
331 <para>The namespace to use for generated code. In CamelCase format.</para>
335 <term><option>output-prefix</option></term>
338 A prefix to use for all generated files. Defaults to <filename>generated</filename>.
344 <property name="FancyProperty" type="s" access="read"/>
347 <interface name="ChangingInterfaceV1">
348 <method name="FooMethod"/>
349 <method name="BarMethod"/>
350 <method name="BazMethod"/>
351 <signal name="FooSignal"/>
352 <signal name="BarSignal"/>
353 <signal name="BazSignal"/>
356 <!-- ChangingInterfaceV2:
358 <interface name="ChangingInterfaceV2">
363 <signal name="NewSignalIn2"/>
368 <method name="NewMethodIn2"/>
370 <!-- reverse order -->
371 <signal name="BazSignal"/>
372 <signal name="BarSignal"/>
373 <signal name="FooSignal"/>
374 <method name="BazMethod"/>
375 <method name="BarMethod"/>
376 <method name="FooMethod"/>
379 <!-- ChangingInterfaceV10:
381 <interface name="ChangingInterfaceV10">
386 <signal name="AddedSignalIn10"/>
387 <method name="AddedMethodIn10">
388 <annotation name="org.gtk.GDBus.Since" value="10.0"/>
395 <signal name="NewSignalIn2"/>
400 <method name="NewMethodIn2"/>
402 <!-- reverse order -->
403 <signal name="BazSignal"/>
404 <signal name="BarSignal"/>
405 <signal name="FooSignal"/>
406 <method name="BazMethod"/>
407 <method name="BarMethod"/>
408 <method name="FooMethod"/>
411 <interface name="TestUglyCaseInterface">
412 <annotation name="org.gtk.GDBus.C.Name" value="TesT_ugly_CASE_Interface"/>
414 <method name="GetiSCSIServers">
415 <annotation name="org.gtk.GDBus.C.Name" value="Get_iSCSI_Servers"/>
418 <signal name="serversUPDATEDNOW">
419 <annotation name="org.gtk.GDBus.C.Name" value="Servers_UPDATED_NOW"/>
422 <property name="UGLYNAME" type="i" access="readwrite">
423 <annotation name="org.gtk.GDBus.C.Name" value="UGLY_NAME"/>
429 @short_description: A an example of an deprecated interface
431 This is an example of a deprecated interface.
433 <interface name="OldieInterface">
434 <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
437 <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
441 <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
444 <property name="Bat" type="i" access="readwrite">
445 <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
449 <!-- ensure we don't choke on unknown/unexpected XML tags or unknown/unexpected attribyutes (#650874) -->
450 <interface name="UnknownXmlTags" unexpected="boo">
452 <anotherTagWeIgnore>yadaydaydaydayda</anotherTagWeIgnore>
454 <method name="CanSetTimezone" also_unexpected="1">
455 <annotation name="org.freedesktop.DBus.GLib.Async" value="" also_unexpected="1">
458 <arg name="value" direction="out" type="i" also_unexpected="1">
463 <signal name="SomeSignal" also_unexpected="1">
466 <property name="SomeProperty" type="s" access="readwrite" also_unexpected="1">
472 <interface name="FDPassing">
473 <method name="HelloFD">
474 <annotation name="org.gtk.GDBus.C.UnixFD" value="1"/>
475 <arg name="greeting" direction="in" type="s"/>
476 <arg name="response" direction="out" type="s"/>
480 <interface name="Naming">
481 <property name="Type" type="i" access="readwrite"/>