2
<repository version="1.2" xmlns="http://www.gtk.org/introspection/core/1.0" xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
3
<include name="GObject" version="2.0"/>
4
<include name="GLib" version="2.0"/>
5
<include name="Gio" version="2.0"/>
7
<c:include name="test.h"/>
8
<namespace name="Test" version="1.0" shared-library="test" c:prefix="Test" c:identifier-prefixes="Test" c:symbol-prefixes="test">
13
glib:type-name="TestFoo"
14
glib:get-type="test_foo_get_type"
15
glib:type-struct="FooClass">
17
<type name="GLib.Object" c:type="GObject"/>
19
<method name="function" c:identifier="test_function">
20
<return-value transfer-ownership="none">
24
<instance-parameter name="self" transfer-ownership="none">
25
<type name="Test.Foo" c:type="TestFoo*"/>
27
<parameter name="callback" transfer-ownership="none" allow-none="1" closure="1" scope="notified" destroy="2">
28
<type name="GLib.Func" c:type="GFunc"/>
30
<parameter name="callback_target" transfer-ownership="none" allow-none="1" closure="0">
31
<type name="gpointer" c:type="void*"/>
33
<parameter name="callback_target_destroy_notify" transfer-ownership="none" scope="call" destroy="0">
34
<type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
39
<record name="FooClass"
41
glib:is-gtype-struct-for="Foo">
43
<function name="function" c:identifier="test_function">
44
<return-value transfer-ownership="none">
48
<parameter name="callback" transfer-ownership="none" allow-none="1" closure="1" scope="notified" destroy="2">
49
<type name="GLib.Func" c:type="GFunc"/>
51
<parameter name="callback_target" transfer-ownership="none" allow-none="1" closure="0">
52
<type name="gpointer" c:type="void*"/>
54
<parameter name="callback_target_destroy_notify" transfer-ownership="none" scope="call" destroy="0">
55
<type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>