summaryrefslogtreecommitdiff
path: root/tests/scanner/annotationparser/gtkdoc/gobject/gobject.h.xml
blob: 42fcc664f71164134167c2f35fa5446a71fc334b (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
156
157
158
<?xml version="1.0" encoding="UTF-8"?>

<tests>

<test>
  <commentblock>/**
 * GtkdocObject:
 *
 * instance data of gtk-doc unit test class
 */</commentblock>
  <docblock>
    <identifier>
      <name>GtkdocObject</name>
    </identifier>
    <description>instance data of gtk-doc unit test class</description>
  </docblock>
</test>

<test>
  <commentblock>/**
 * GtkdocObjectClass:
 * @parent: this is a bug :/
 * @test: overideable method
 * @ping: can be used before calling the @test() function
 * @foo_bar: lets you refine your frobnicator
 *
 * class data of gtk-doc unit test class
 */</commentblock>
  <docblock>
    <identifier>
      <name>GtkdocObjectClass</name>
    </identifier>
    <parameters>
      <parameter>
        <name>parent</name>
        <description>this is a bug :/</description>
      </parameter>
      <parameter>
        <name>test</name>
        <description>overideable method</description>
      </parameter>
      <parameter>
        <name>ping</name>
        <description>can be used before calling the @test() function</description>
      </parameter>
      <parameter>
        <name>foo_bar</name>
        <description>lets you refine your frobnicator</description>
      </parameter>
    </parameters>
    <description>class data of gtk-doc unit test class</description>
  </docblock>
</test>

<test>
  <commentblock>/**
 * GtkdocObject2:
 *
 * instance data of gtk-doc unit test class
 */</commentblock>
  <docblock>
    <identifier>
      <name>GtkdocObject2</name>
    </identifier>
    <description>instance data of gtk-doc unit test class</description>
  </docblock>
</test>

<test>
  <commentblock>/**
 * GtkdocObject2Class:
 * @parent: this is a bug :/
 *
 * class data of gtk-doc unit test class
 */</commentblock>
  <docblock>
    <identifier>
      <name>GtkdocObject2Class</name>
    </identifier>
    <parameters>
      <parameter>
        <name>parent</name>
        <description>this is a bug :/</description>
      </parameter>
    </parameters>
    <description>class data of gtk-doc unit test class</description>
  </docblock>
</test>

<test>
  <commentblock>/**
 * GTKDOC_OBJECT_MACRO_DUMMY:
 * @parameter_1: first arg
 * @parameter_2: second arg
 *
 * This macro does nothing.
 *
 * Since: 0.1
 */</commentblock>
  <docblock>
    <identifier>
      <name>GTKDOC_OBJECT_MACRO_DUMMY</name>
    </identifier>
    <parameters>
      <parameter>
        <name>parameter_1</name>
        <description>first arg</description>
      </parameter>
      <parameter>
        <name>parameter_2</name>
        <description>second arg</description>
      </parameter>
    </parameters>
    <description>This macro does nothing.</description>
    <tags>
      <tag>
        <name>since</name>
        <description>0.1</description>
      </tag>
    </tags>
  </docblock>
</test>

<test>
  <commentblock>/**
 * GTKDOC_OBJECT_MACRO_SUM:
 * @parameter_1: first arg
 * @parameter_2: second arg
 *
 * This macro adds its args.
 *
 * Returns: the sum of @parameter_1 and @parameter_2
 */</commentblock>
  <docblock>
    <identifier>
      <name>GTKDOC_OBJECT_MACRO_SUM</name>
    </identifier>
    <parameters>
      <parameter>
        <name>parameter_1</name>
        <description>first arg</description>
      </parameter>
      <parameter>
        <name>parameter_2</name>
        <description>second arg</description>
      </parameter>
    </parameters>
    <description>This macro adds its args.</description>
    <tags>
      <tag>
        <name>returns</name>
        <description>the sum of @parameter_1 and @parameter_2</description>
      </tag>
    </tags>
  </docblock>
</test>

</tests>