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="GLib" version="2.0"/>
10 <include name="GObject" version="2.0"/>
11 <package name="gobject-2.0"/>
12 <c:include name="utility.h"/>
13 <namespace name="Utility"
15 shared-library="libutility.so"
16 c:identifier-prefixes="Utility"
17 c:symbol-prefixes="utility">
18 <alias name="Glyph" c:type="UtilityGlyph">
19 <type name="guint32" c:type="guint32"/>
21 <record name="Buffer" c:type="UtilityBuffer">
22 <field name="data" writable="1">
23 <type name="gpointer"/>
25 <field name="length" writable="1">
26 <type name="gsize" c:type="gsize"/>
29 <union name="Byte" c:type="UtilityByte">
30 <field name="value" writable="1">
31 <type name="guint8" c:type="guint8"/>
33 <record name="parts" c:type="parts">
34 <field name="first_nibble" writable="1" bits="4">
35 <type name="guint8" c:type="guint8"/>
37 <field name="second_nibble" writable="1" bits="4">
38 <type name="guint8" c:type="guint8"/>
42 <enumeration name="EnumType" c:type="UtilityEnumType">
43 <member name="a" value="0" c:identifier="UTILITY_ENUM_A"/>
44 <member name="b" value="1" c:identifier="UTILITY_ENUM_B"/>
45 <member name="c" value="2" c:identifier="UTILITY_ENUM_C"/>
47 <callback name="FileFunc" c:type="UtilityFileFunc">
48 <return-value transfer-ownership="none">
49 <type name="none" c:type="void"/>
52 <parameter name="path" transfer-ownership="none">
53 <type name="utf8" c:type="char*"/>
55 <parameter name="user_data" transfer-ownership="none" closure="1">
56 <type name="gpointer" c:type="gpointer"/>
60 <bitfield name="FlagType" c:type="UtilityFlagType">
61 <member name="a" value="1" c:identifier="UTILITY_FLAG_A"/>
62 <member name="b" value="2" c:identifier="UTILITY_FLAG_B"/>
63 <member name="c" value="4" c:identifier="UTILITY_FLAG_C"/>
66 c:symbol-prefix="object"
67 c:type="UtilityObject"
68 parent="GObject.Object"
69 glib:type-name="UtilityObject"
70 glib:get-type="utility_object_get_type"
71 glib:type-struct="ObjectClass">
72 <method name="watch_dir" c:identifier="utility_object_watch_dir">
73 <return-value transfer-ownership="none">
74 <type name="none" c:type="void"/>
77 <parameter name="path" transfer-ownership="none">
78 <type name="utf8" c:type="char*"/>
80 <parameter name="func"
81 transfer-ownership="none"
85 <type name="FileFunc" c:type="UtilityFileFunc"/>
87 <parameter name="user_data" transfer-ownership="none">
88 <type name="gpointer" c:type="gpointer"/>
90 <parameter name="destroy" transfer-ownership="none" scope="async">
91 <type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
95 <field name="parent_instance">
96 <type name="GObject.Object" c:type="GObject"/>
99 <record name="ObjectClass"
100 c:type="UtilityObjectClass"
101 glib:is-gtype-struct-for="Object">
102 <field name="parent_class">
103 <type name="GObject.ObjectClass" c:type="GObjectClass"/>
106 <record name="Struct" c:type="UtilityStruct">
107 <field name="field" writable="1">
108 <type name="gint" c:type="int"/>
110 <field name="bitfield1" writable="1" bits="3">
111 <type name="guint" c:type="guint"/>
113 <field name="bitfield2" writable="1" bits="2">
114 <type name="guint" c:type="guint"/>
116 <field name="data" writable="1">
117 <array zero-terminated="0" c:type="guint8" fixed-size="16">
118 <type name="guint8" c:type="guint8"/>
122 <record name="TaggedValue" c:type="UtilityTaggedValue">
123 <field name="tag" writable="1">
124 <type name="gint" c:type="int"/>
126 <union name="value" c:type="value">
127 <field name="v_pointer" writable="1">
128 <type name="gpointer" c:type="gpointer"/>
130 <field name="v_real" writable="1">
131 <type name="gdouble" c:type="double"/>
133 <field name="v_integer" writable="1">
134 <type name="glong" c:type="long"/>
138 <union name="Union" c:type="UtilityUnion">
139 <field name="pointer" writable="1">
140 <type name="utf8" c:type="char*"/>
142 <field name="integer" writable="1">
143 <type name="glong" c:type="glong"/>
145 <field name="real" writable="1">
146 <type name="gdouble" c:type="double"/>
149 <function name="dir_foreach" c:identifier="utility_dir_foreach">
150 <return-value transfer-ownership="none">
151 <type name="none" c:type="void"/>
154 <parameter name="path" transfer-ownership="none">
155 <type name="utf8" c:type="char*"/>
157 <parameter name="func"
158 transfer-ownership="none"
161 <type name="FileFunc" c:type="UtilityFileFunc"/>
163 <parameter name="user_data" transfer-ownership="none">
164 <type name="gpointer" c:type="gpointer"/>