summaryrefslogtreecommitdiff
path: root/test/input/_Test.xml
blob: 0eb9a0c89e9daac59dae5353574dcdc742370b85 (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
<?xml version="1.0" ?>
<node name="/_Test" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
  <tp:copyright>Copyright (C) 2006 Collabora Limited</tp:copyright>
  <tp:license xmlns="http://www.w3.org/1999/xhtml">
<p>This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.</p>

<p>This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.</p>

<p>You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
USA.</p>
  </tp:license>
  <interface name="im.telepathy1.SpecAutoGenTest">

    <tp:client-interest/>
    <tp:client-interest name="badgers"/>

    <tp:struct name="UV" array-name="UV_List">
      <tp:member name="Uint" type="u"/>
      <tp:member name="Variant" type="v"/>
    </tp:struct>

    <method name="DoStuff" tp:name-for-bindings="Do_Stuff">
      <arg direction="in" name="badger" type="b">
        <tp:docstring>A badger, which MAY be breezy.</tp:docstring>
      </arg>
      <arg direction="in" name="mushroom" type="a{sv}">
        <tp:docstring>Use of hallucinogenic mushrooms will lead to undefined behaviour.</tp:docstring>
      </arg>
      <arg direction="in" name="snake" type="s">
        <tp:docstring>A snake, it's a snake.</tp:docstring>
      </arg>
      <arg direction="out" name="misc" type="a(uv)" tp:type="UV[]">
        <tp:docstring>Array of structs containing whatever seems appropriate.</tp:docstring>
      </arg>
      <tp:possible-errors>
        <tp:error name="im.telepathy1.SpecAutoGenTest.MiscError"/>
        <tp:error name="im.telepathy1.SpecAutoGenTest.OtherError">
          <tp:docstring>Raised if the badger or the snake eats the mushrooms</tp:docstring>
        </tp:error>
      </tp:possible-errors>
      <tp:docstring>
        Does stuff.
      </tp:docstring>
    </method>

    <signal name="StuffHappened" tp:name-for-bindings="Stuff_Happened">
      <arg name="stoat" type="ay">
        <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
          <em>Mustela erminea</em>
        </tp:docstring>
      </arg>
      <arg name="ferret" type="s">
        <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
          <em>Mustela putorius furo</em>
        </tp:docstring>
      </arg>
      <arg name="weasel" type="b">
        <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
          <em>Mustela nivalis</em> (or compatible)
        </tp:docstring>
      </arg>
      <tp:docstring>
        Emitted when stuff happened.
      </tp:docstring>
    </signal>

    <property name="Introspective" tp:name-for-bindings="Introspective"
      type="b" access="read">
      <tp:docstring>
        True if the badger is introspective.

        <tp:rationale>
          Goths can be mistaken for badgers in poor lighting conditions.
        </tp:rationale>
      </tp:docstring>
    </property>

    <tp:flags name="Test_Flags" value-prefix="Test" type="u">
      <tp:docstring>A set of flags</tp:docstring>
      <tp:flag suffix="LowBit" value="1">
        <tp:docstring>
          A bit
        </tp:docstring>
      </tp:flag>
      <tp:flag suffix="HighBit" value="128">
        <tp:docstring>
          Another bit
        </tp:docstring>
      </tp:flag>
    </tp:flags>

    <tp:enum name="Adjective" type="u">
      <tp:docstring>Adjectives which may be applied to a specification</tp:docstring>
      <tp:enumvalue suffix="Leveraging" value="0">
        <tp:docstring>
          Can leverage synergy
        </tp:docstring>
      </tp:enumvalue>
      <tp:enumvalue suffix="Synergistic" value="1">
        <tp:docstring>
          Can synergize with leverage
        </tp:docstring>
      </tp:enumvalue>
    </tp:enum>

    <tp:docstring>
      A test case for the spec processing.
    </tp:docstring>

  </interface>
</node>
<!-- vim:set sw=2 sts=2 et ft=xml: -->