Imported Upstream version 1.35.9
[platform/upstream/gobject-introspection.git] / tests / scanner / GetType-1.0-expected.gir
1 <?xml version="1.0"?>
2 <!-- This file was automatically generated from C sources - DO NOT EDIT!
3 To affect the contents of this file, edit the original C definitions,
4 and/or use gtk-doc annotations.  -->
5 <repository version="1.2"
6             xmlns="http://www.gtk.org/introspection/core/1.0"
7             xmlns:c="http://www.gtk.org/introspection/c/1.0"
8             xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
9   <include name="GObject" version="2.0"/>
10   <package name="gobject-2.0"/>
11   <c:include name="gettype.h"/>
12   <namespace name="GetType"
13              version="1.0"
14              shared-library="libgettype.so"
15              c:identifier-prefixes="GetType"
16              c:symbol-prefixes="gettype">
17     <class name="Object"
18            c:symbol-prefix="object"
19            c:type="GetTypeObject"
20            parent="GObject.Object"
21            glib:type-name="GetTypeObject"
22            glib:get-type="gettype_object_get_type"
23            glib:type-struct="ObjectClass">
24       <constructor name="new" c:identifier="gettype_object_new">
25         <return-value transfer-ownership="full">
26           <type name="Object" c:type="GetTypeObject*"/>
27         </return-value>
28       </constructor>
29       <function name="nonmeta2_get_type"
30                 c:identifier="gettype_object_nonmeta2_get_type">
31         <doc xml:whitespace="preserve">This shouldn't be scanned as a *_get_type function because it doesn't return
32 a GType. It will generate a warning.</doc>
33         <return-value transfer-ownership="none">
34           <doc xml:whitespace="preserve">true</doc>
35           <type name="gboolean" c:type="gboolean"/>
36         </return-value>
37       </function>
38       <function name="nonmeta_get_gtype"
39                 c:identifier="gettype_object_nonmeta_get_gtype">
40         <doc xml:whitespace="preserve">This shouldn't be scanned as a *_get_type function because it doesn't return
41 a GType. It will generate a warning.</doc>
42         <return-value transfer-ownership="none">
43           <doc xml:whitespace="preserve">true</doc>
44           <type name="gboolean" c:type="gboolean"/>
45         </return-value>
46       </function>
47       <method name="nonmeta1_get_type"
48               c:identifier="gettype_object_nonmeta1_get_type">
49         <doc xml:whitespace="preserve">This shouldn't be scanned as a *_get_type function because it takes
50 arguments.</doc>
51         <return-value transfer-ownership="none">
52           <doc xml:whitespace="preserve">0</doc>
53           <type name="GType" c:type="GType"/>
54         </return-value>
55         <parameters>
56           <instance-parameter name="obj" transfer-ownership="none">
57             <doc xml:whitespace="preserve">self</doc>
58             <type name="Object" c:type="GetTypeObject*"/>
59           </instance-parameter>
60         </parameters>
61       </method>
62       <field name="parent_instance">
63         <type name="GObject.Object" c:type="GObject"/>
64       </field>
65     </class>
66     <record name="ObjectClass"
67             c:type="GetTypeObjectClass"
68             glib:is-gtype-struct-for="Object">
69       <field name="parent_class">
70         <type name="GObject.ObjectClass" c:type="GObjectClass"/>
71       </field>
72     </record>
73   </namespace>
74 </repository>