2 <repository version="1.0"
3 xmlns="http://www.gtk.org/introspection/core/1.0"
4 xmlns:c="http://www.gtk.org/introspection/c/1.0"
5 xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
6 <include name="utility" version="1.0"/>
7 <include name="GObject" version="2.0"/>
8 <include name="GLib" version="2.0"/>
9 <namespace name="annotation" version="1.0" shared-library="annotation" c:prefix="annotation">
10 <callback name="Callback">
11 <return-value transfer-ownership="none">
15 <parameter name="in" transfer-ownership="none">
20 <callback name="ForeachFunc">
21 <return-value transfer-ownership="none">
25 <parameter name="object" transfer-ownership="none">
28 <parameter name="item" transfer-ownership="none">
31 <parameter name="user_data" transfer-ownership="none" closure="2">
36 <callback name="ListCallback">
37 <return-value transfer-ownership="container">
38 <type name="GLib.List">
43 <parameter name="in" transfer-ownership="none">
44 <type name="GLib.List">
50 <class name="Object" parent="GObject.Object" glib:type-struct="ObjectClass" glib:type-name="AnnotationObject" glib:get-type="annotation_object_get_type">
51 <attribute name="org.example.Test" value="cows"/>
52 <field name="parent_instance">
53 <type name="GObject.Object"/>
55 <method name="method" c:identifier="annotation_object_method">
56 <return-value transfer-ownership="none">
60 <method name="out" c:identifier="annotation_object_out">
61 <return-value transfer-ownership="none">
65 <parameter name="outarg" transfer-ownership="full" direction="out">
70 <method name="create_object" c:identifier="annotation_object_create_object">
71 <return-value transfer-ownership="full">
72 <type name="GObject.Object"/>
75 <method name="allow_none" c:identifier="annotation_object_allow_none">
76 <return-value transfer-ownership="full">
77 <type name="GObject.Object"/>
80 <parameter name="somearg" transfer-ownership="none" allow-none="1">
85 <method name="notrans" c:identifier="annotation_object_notrans">
86 <return-value transfer-ownership="none">
87 <type name="GObject.Object"/>
90 <method name="inout" c:identifier="annotation_object_inout">
91 <return-value transfer-ownership="none">
95 <parameter name="inoutarg" transfer-ownership="full" direction="inout">
100 <method name="inout2" c:identifier="annotation_object_inout2">
101 <return-value transfer-ownership="none">
105 <parameter name="inoutarg" transfer-ownership="full" direction="inout">
110 <method name="inout3" c:identifier="annotation_object_inout3">
111 <return-value transfer-ownership="none">
115 <parameter name="inoutarg" transfer-ownership="full" direction="inout" allow-none="1">
120 <method name="in" c:identifier="annotation_object_in">
121 <return-value transfer-ownership="none">
125 <parameter name="inarg" transfer-ownership="none">
130 <method name="calleeowns" c:identifier="annotation_object_calleeowns">
131 <return-value transfer-ownership="none">
135 <parameter name="toown" transfer-ownership="full" direction="out">
136 <type name="GObject.Object"/>
140 <method name="calleesowns" c:identifier="annotation_object_calleesowns">
141 <return-value transfer-ownership="none">
145 <parameter name="toown1" transfer-ownership="full" direction="out">
146 <type name="GObject.Object"/>
148 <parameter name="toown2" transfer-ownership="none" direction="out">
149 <type name="GObject.Object"/>
153 <method name="get_strings" c:identifier="annotation_object_get_strings">
154 <return-value transfer-ownership="full">
155 <type name="GLib.List">
160 <method name="get_hash" c:identifier="annotation_object_get_hash">
161 <return-value transfer-ownership="full">
162 <type name="GLib.HashTable">
164 <type name="GObject.Object"/>
168 <method name="with_voidp" c:identifier="annotation_object_with_voidp">
169 <return-value transfer-ownership="none">
173 <parameter name="data" transfer-ownership="none">
178 <method name="get_objects" c:identifier="annotation_object_get_objects">
179 <return-value transfer-ownership="container">
180 <type name="GLib.SList">
181 <type name="Object"/>
185 <method name="use_buffer" c:identifier="annotation_object_use_buffer">
186 <return-value transfer-ownership="none">
190 <parameter name="bytes" transfer-ownership="none">
191 <array zero-terminated="1">
197 <method name="compute_sum" c:identifier="annotation_object_compute_sum">
198 <return-value transfer-ownership="none">
202 <parameter name="nums" transfer-ownership="none">
203 <array zero-terminated="1">
209 <method name="compute_sum_n" c:identifier="annotation_object_compute_sum_n">
210 <return-value transfer-ownership="none">
214 <parameter name="nums" transfer-ownership="none">
219 <parameter name="n_nums" transfer-ownership="none">
224 <method name="compute_sum_nz" c:identifier="annotation_object_compute_sum_nz">
225 <return-value transfer-ownership="none">
229 <parameter name="nums" transfer-ownership="none">
230 <array length="2" zero-terminated="1">
234 <parameter name="n_nums" transfer-ownership="none">
239 <method name="parse_args" c:identifier="annotation_object_parse_args">
240 <return-value transfer-ownership="none">
244 <parameter name="argc" transfer-ownership="full" direction="inout">
247 <parameter name="argv" transfer-ownership="none" direction="inout">
248 <array length="1" zero-terminated="1">
254 <method name="string_out" c:identifier="annotation_object_string_out">
255 <return-value transfer-ownership="none">
256 <type name="boolean"/>
259 <parameter name="str_out" transfer-ownership="full" direction="out">
264 <method name="foreach" c:identifier="annotation_object_foreach">
265 <return-value transfer-ownership="none">
269 <parameter name="func" transfer-ownership="none" scope="call" closure="2">
270 <type name="ForeachFunc"/>
272 <parameter name="user_data" transfer-ownership="none">
277 <method name="set_data" c:identifier="annotation_object_set_data">
278 <return-value transfer-ownership="none">
282 <parameter name="data" transfer-ownership="none">
283 <array length="2" zero-terminated="1">
287 <parameter name="length" transfer-ownership="none">
292 <method name="set_data2" c:identifier="annotation_object_set_data2">
293 <return-value transfer-ownership="none">
297 <parameter name="data" transfer-ownership="none">
298 <array length="2" zero-terminated="1">
302 <parameter name="length" transfer-ownership="none">
307 <method name="set_data3" c:identifier="annotation_object_set_data3">
308 <return-value transfer-ownership="none">
312 <parameter name="data" transfer-ownership="none">
313 <array length="2" zero-terminated="1">
317 <parameter name="length" transfer-ownership="none">
322 <method name="do_not_use" c:identifier="annotation_object_do_not_use" deprecated="1">
323 <return-value transfer-ownership="full">
324 <type name="GObject.Object"/>
327 <method name="watch" c:identifier="annotation_object_watch_full">
328 <return-value transfer-ownership="none">
332 <parameter name="func" transfer-ownership="none" closure="2" destroy="3">
333 <type name="ForeachFunc"/>
335 <parameter name="user_data" transfer-ownership="none">
338 <parameter name="destroy" transfer-ownership="none">
339 <type name="GLib.DestroyNotify"/>
343 <method name="extra_annos" c:identifier="annotation_object_extra_annos">
344 <attribute name="org.foobar" value="testvalue"/>
345 <return-value transfer-ownership="none">
349 <property name="string-property" writable="1" construct="1">
352 <glib:signal name="string-signal" when="LAST">
353 <return-value transfer-ownership="full">
357 <parameter name="string" transfer-ownership="none">
362 <glib:signal name="list-signal" when="LAST">
363 <return-value transfer-ownership="full">
367 <parameter name="list" transfer-ownership="container">
368 <type name="GLib.List">
375 <record name="ObjectClass" glib:is-gtype-struct="1">
376 <field name="parent_class">
377 <type name="GObject.ObjectClass"/>
380 <record name="Struct">
381 <field name="objects" writable="1">
382 <array fixed-size="10">
383 <type name="Object"/>
387 <function name="get_source_file" c:identifier="annotation_get_source_file">
388 <return-value transfer-ownership="full">
389 <type name="filename"/>
392 <function name="init" c:identifier="annotation_init">
393 <return-value transfer-ownership="none">
397 <parameter name="argc" transfer-ownership="full" direction="inout">
400 <parameter name="argv" transfer-ownership="none" direction="inout">
401 <array length="0" zero-terminated="1">
407 <function name="return_array" c:identifier="annotation_return_array">
408 <return-value transfer-ownership="none">
409 <array length="0" zero-terminated="1">
414 <parameter name="length" transfer-ownership="full" direction="out">
419 <function name="set_source_file" c:identifier="annotation_set_source_file">
420 <return-value transfer-ownership="none">
424 <parameter name="fname" transfer-ownership="none">
425 <type name="filename"/>
429 <function name="string_zero_terminated" c:identifier="annotation_string_zero_terminated">
430 <return-value transfer-ownership="none">
431 <array zero-terminated="1">
436 <function name="string_zero_terminated_out" c:identifier="annotation_string_zero_terminated_out">
437 <return-value transfer-ownership="none">
441 <parameter name="out" transfer-ownership="none" direction="inout">
442 <array zero-terminated="1">
448 <function name="versioned" c:identifier="annotation_versioned">
449 <return-value transfer-ownership="none">