summaryrefslogtreecommitdiffstats
path: root/test/glib/test-service-glib.xml
blob: 4ea2b2bbe3bfa7b9651cfc6d5f2f17b7b4eb7ae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?xml version="1.0" encoding="UTF-8" ?>

<node name="/org/freedesktop/DBus/Tests/MyTestObject">
  <interface name="org.freedesktop.DBus.Tests.MyObject">
    <method name="DoNothing">
    </method>

    <method name="Increment">
      <arg type="u" name="x" />
      <arg type="u" direction="out" />
    </method>

    <method name="IncrementRetval">
      <arg type="u" name="x" />
      <arg type="u" direction="out">
	<annotation name="org.freedesktop.DBus.GLib.ReturnVal" value=""/>
      </arg>
    </method>

    <method name="IncrementRetvalError">
      <arg type="u" name="x" />
      <arg type="u" direction="out">
	<annotation name="org.freedesktop.DBus.GLib.ReturnVal" value="error"/>
      </arg>
    </method>

    <method name="ThrowError">
    </method>

    <method name="Uppercase">
      <arg type="s" direction="in" />
      <arg type="s" direction="out" />
    </method>

    <method name="ManyArgs">
      <arg type="u" name="x" direction="in" />
      <arg type="s" name="str" direction="in" />
      <arg type="d" name="trouble" direction="in" />
      <arg type="d" name="d_ret" direction="out" />
      <arg type="s" name="str_ret" direction="out" />
    </method>

    <method name="ManyReturn">
      <arg type="u" direction="out" />
      <arg type="s" direction="out" />
      <arg type="i" direction="out" />
      <arg type="u" direction="out" />
      <arg type="u" direction="out" />
      <arg type="s" direction="out">
	<annotation name="org.freedesktop.DBus.GLib.Const" value=""/>
      </arg>
    </method>

    <method name="Stringify">
      <arg type="v" name="val" direction="in"/>
      <arg type="s" direction="out"/>
    </method>

    <method name="Unstringify">
      <arg type="s" name="val" direction="in"/>
      <arg type="v" direction="out"/>
    </method>

    <method name="Recursive1">
      <arg type="au" direction="in"/>
      <arg type="u" direction="out"/>
    </method>

    <method name="Recursive2">
      <arg type="u" direction="in"/>
      <arg type="au" direction="out"/>
    </method>

    <method name="ManyUppercase">
      <arg type="as" direction="in"/>
      <arg type="as" direction="out"/>
    </method>

    <method name="StrHashLen">
      <arg type="a{ss}" direction="in"/>
      <arg type="u" direction="out"/>
    </method>

    <method name="GetHash">
      <arg type="a{ss}" direction="out"/>
    </method>

    <method name="Objpath">
      <arg type="o" direction="in"/>
      <arg type="o" direction="out">
	<annotation name="org.freedesktop.DBus.GLib.Const" value=""/>
      </arg>
    </method>

    <method name="GetObjs">
      <arg type="ao" direction="out"/>
    </method>

    <method name="IncrementVal">
    </method>

    <method name="AsyncIncrement">
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <arg type="u" name="x" />
      <arg type="u" direction="out" />
    </method>

    <method name="AsyncThrowError">
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
    </method>
    
    <method name="GetVal">
      <arg type="u" direction="out" />
    </method>

    <method name="ManyStringify">
      <arg type="a{sv}" direction="in"/>
      <arg type="a{sv}" direction="out"/>
    </method>

    <method name="EmitFrobnicate">
    </method>

    <!-- Export signals -->
    <signal name="Frobnicate"/>

    <method name="Terminate">
    </method>
  </interface>

  <!-- Test multiple interfaces on the same object -->

  <interface name="org.freedesktop.DBus.Tests.FooObject">
    <method name="GetValue">
      <arg type="u" direction="out" />
    </method>

    <method name="EmitSignals">
    </method>

    <signal name="Sig0"/>

    <signal name="Sig1"/>

    <method name="EmitSignal2">
    </method>

    <signal name="Sig2"/>

    <method name="Terminate">
    </method>

  </interface>

</node>