Imported Upstream version 1.59.1
[platform/upstream/gobject-introspection.git] / docs / reference / html / gi-GITypeInfo.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>GITypeInfo: libgirepository API Reference</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7 <link rel="home" href="index.html" title="libgirepository API Reference">
8 <link rel="up" href="ch01.html" title="GIBaseInfo">
9 <link rel="prev" href="gi-GIPropertyInfo.html" title="GIPropertyInfo">
10 <link rel="next" href="gi-GIValueInfo.html" title="GIValueInfo">
11 <meta name="generator" content="GTK-Doc V1.28 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16 <td width="100%" align="left" class="shortcuts">
17 <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18                   <a href="#gi-GITypeInfo.description" class="shortcut">Description</a></span>
19 </td>
20 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
21 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
22 <td><a accesskey="p" href="gi-GIPropertyInfo.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23 <td><a accesskey="n" href="gi-GIValueInfo.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
24 </tr></table>
25 <div class="refentry">
26 <a name="gi-GITypeInfo"></a><div class="titlepage"></div>
27 <div class="refnamediv"><table width="100%"><tr>
28 <td valign="top">
29 <h2><span class="refentrytitle"><a name="gi-GITypeInfo.top_of_page"></a>GITypeInfo</span></h2>
30 <p>GITypeInfo — Struct representing a type</p>
31 </td>
32 <td class="gallery_image" valign="top" align="right"></td>
33 </tr></table></div>
34 <div class="refsect1">
35 <a name="gi-GITypeInfo.functions"></a><h2>Functions</h2>
36 <div class="informaltable"><table class="informaltable" width="100%" border="0">
37 <colgroup>
38 <col width="150px" class="functions_return">
39 <col class="functions_name">
40 </colgroup>
41 <tbody>
42 <tr>
43 <td class="define_keyword">#define</td>
44 <td class="function_name">
45 <a class="link" href="gi-GITypeInfo.html#GI-IS-TYPE-INFO:CAPS" title="GI_IS_TYPE_INFO()">GI_IS_TYPE_INFO</a><span class="c_punctuation">()</span>
46 </td>
47 </tr>
48 <tr>
49 <td class="function_type">
50 <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
51 </td>
52 <td class="function_name">
53 <a class="link" href="gi-GITypeInfo.html#g-type-info-is-pointer" title="g_type_info_is_pointer ()">g_type_info_is_pointer</a> <span class="c_punctuation">()</span>
54 </td>
55 </tr>
56 <tr>
57 <td class="function_type">
58 <a class="link" href="gi-Common-Types.html#GITypeTag" title="enum GITypeTag"><span class="returnvalue">GITypeTag</span></a>
59 </td>
60 <td class="function_name">
61 <a class="link" href="gi-GITypeInfo.html#g-type-info-get-tag" title="g_type_info_get_tag ()">g_type_info_get_tag</a> <span class="c_punctuation">()</span>
62 </td>
63 </tr>
64 <tr>
65 <td class="function_type">
66 <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="returnvalue">GITypeInfo</span></a> *
67 </td>
68 <td class="function_name">
69 <a class="link" href="gi-GITypeInfo.html#g-type-info-get-param-type" title="g_type_info_get_param_type ()">g_type_info_get_param_type</a> <span class="c_punctuation">()</span>
70 </td>
71 </tr>
72 <tr>
73 <td class="function_type">
74 <a class="link" href="GIBaseInfo.html" title="GIBaseInfo"><span class="returnvalue">GIBaseInfo</span></a> *
75 </td>
76 <td class="function_name">
77 <a class="link" href="gi-GITypeInfo.html#g-type-info-get-interface" title="g_type_info_get_interface ()">g_type_info_get_interface</a> <span class="c_punctuation">()</span>
78 </td>
79 </tr>
80 <tr>
81 <td class="function_type">
82 <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
83 </td>
84 <td class="function_name">
85 <a class="link" href="gi-GITypeInfo.html#g-type-info-get-array-length" title="g_type_info_get_array_length ()">g_type_info_get_array_length</a> <span class="c_punctuation">()</span>
86 </td>
87 </tr>
88 <tr>
89 <td class="function_type">
90 <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
91 </td>
92 <td class="function_name">
93 <a class="link" href="gi-GITypeInfo.html#g-type-info-get-array-fixed-size" title="g_type_info_get_array_fixed_size ()">g_type_info_get_array_fixed_size</a> <span class="c_punctuation">()</span>
94 </td>
95 </tr>
96 <tr>
97 <td class="function_type">
98 <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
99 </td>
100 <td class="function_name">
101 <a class="link" href="gi-GITypeInfo.html#g-type-info-is-zero-terminated" title="g_type_info_is_zero_terminated ()">g_type_info_is_zero_terminated</a> <span class="c_punctuation">()</span>
102 </td>
103 </tr>
104 <tr>
105 <td class="function_type">
106 <a class="link" href="gi-Common-Types.html#GIArrayType" title="enum GIArrayType"><span class="returnvalue">GIArrayType</span></a>
107 </td>
108 <td class="function_name">
109 <a class="link" href="gi-GITypeInfo.html#g-type-info-get-array-type" title="g_type_info_get_array_type ()">g_type_info_get_array_type</a> <span class="c_punctuation">()</span>
110 </td>
111 </tr>
112 </tbody>
113 </table></div>
114 </div>
115 <div class="refsect1">
116 <a name="gi-GITypeInfo.other"></a><h2>Types and Values</h2>
117 <div class="informaltable"><table class="informaltable" width="100%" border="0">
118 <colgroup>
119 <col width="150px" class="name">
120 <col class="description">
121 </colgroup>
122 <tbody><tr>
123 <td class="typedef_keyword">typedef</td>
124 <td class="function_name"><a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo">GITypeInfo</a></td>
125 </tr></tbody>
126 </table></div>
127 </div>
128 <div class="refsect1">
129 <a name="gi-GITypeInfo.description"></a><h2>Description</h2>
130 <p>GITypeInfo represents a type. You can retrieve a type info from
131 an argument (see <a class="link" href="gi-GIArgInfo.html#GIArgInfo" title="GIArgInfo"><span class="type">GIArgInfo</span></a>), a functions return value (see <a class="link" href="gi-GIFunctionInfo.html#GIFunctionInfo" title="GIFunctionInfo"><span class="type">GIFunctionInfo</span></a>),
132 a field (see <a class="link" href="gi-GIFieldInfo.html#GIFieldInfo" title="GIFieldInfo"><span class="type">GIFieldInfo</span></a>), a property (see <a class="link" href="gi-GIPropertyInfo.html#GIPropertyInfo" title="GIPropertyInfo"><span class="type">GIPropertyInfo</span></a>), a constant
133 (see <a class="link" href="gi-GIConstantInfo.html#GIConstantInfo" title="GIConstantInfo"><span class="type">GIConstantInfo</span></a>) or for a union discriminator (see <a class="link" href="gi-GIUnionInfo.html#GIUnionInfo" title="GIUnionInfo"><span class="type">GIUnionInfo</span></a>).</p>
134 <p>A type can either be a of a basic type which is a standard C primitive
135 type or an interface type. For interface types you need to call
136 <a class="link" href="gi-GITypeInfo.html#g-type-info-get-interface" title="g_type_info_get_interface ()"><code class="function">g_type_info_get_interface()</code></a> to get a reference to the base info for that
137 interface.</p>
138 <div class="refsect1">
139 <a name="gi-gitypeinfo.struct-hierarchy"></a><h2>Struct hierarchy</h2>
140 <pre class="synopsis">
141   <a class="link" href="GIBaseInfo.html" title="GIBaseInfo">GIBaseInfo</a>
142    +----GITypeInfo
143 </pre>
144 </div>
145 </div>
146 <div class="refsect1">
147 <a name="gi-GITypeInfo.functions_details"></a><h2>Functions</h2>
148 <div class="refsect2">
149 <a name="GI-IS-TYPE-INFO:CAPS"></a><h3>GI_IS_TYPE_INFO()</h3>
150 <pre class="programlisting">#define             GI_IS_TYPE_INFO(info)</pre>
151 <p>Checks if <em class="parameter"><code>info</code></em>
152  is a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a>.</p>
153 <div class="refsect3">
154 <a name="GI-IS-TYPE-INFO.parameters"></a><h4>Parameters</h4>
155 <div class="informaltable"><table class="informaltable" width="100%" border="0">
156 <colgroup>
157 <col width="150px" class="parameters_name">
158 <col class="parameters_description">
159 <col width="200px" class="parameters_annotations">
160 </colgroup>
161 <tbody><tr>
162 <td class="parameter_name"><p>info</p></td>
163 <td class="parameter_description"><p>an info structure</p></td>
164 <td class="parameter_annotations"> </td>
165 </tr></tbody>
166 </table></div>
167 </div>
168 </div>
169 <hr>
170 <div class="refsect2">
171 <a name="g-type-info-is-pointer"></a><h3>g_type_info_is_pointer ()</h3>
172 <pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
173 g_type_info_is_pointer (<em class="parameter"><code><a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a> *info</code></em>);</pre>
174 <p>Obtain if the type is passed as a reference.</p>
175 <p>Note that the types of <a class="link" href="gi-GIArgInfo.html#GI-DIRECTION-OUT:CAPS"><code class="literal">GI_DIRECTION_OUT</code></a> and <a class="link" href="gi-GIArgInfo.html#GI-DIRECTION-INOUT:CAPS"><code class="literal">GI_DIRECTION_INOUT</code></a> parameters
176 will only be pointers if the underlying type being transferred is a pointer
177 (i.e. only if the type of the C function’s formal parameter is a pointer to a
178 pointer).</p>
179 <div class="refsect3">
180 <a name="g-type-info-is-pointer.parameters"></a><h4>Parameters</h4>
181 <div class="informaltable"><table class="informaltable" width="100%" border="0">
182 <colgroup>
183 <col width="150px" class="parameters_name">
184 <col class="parameters_description">
185 <col width="200px" class="parameters_annotations">
186 </colgroup>
187 <tbody><tr>
188 <td class="parameter_name"><p>info</p></td>
189 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
190 <td class="parameter_annotations"> </td>
191 </tr></tbody>
192 </table></div>
193 </div>
194 <div class="refsect3">
195 <a name="g-type-info-is-pointer.returns"></a><h4>Returns</h4>
196 <p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if it is a pointer</p>
197 </div>
198 </div>
199 <hr>
200 <div class="refsect2">
201 <a name="g-type-info-get-tag"></a><h3>g_type_info_get_tag ()</h3>
202 <pre class="programlisting"><a class="link" href="gi-Common-Types.html#GITypeTag" title="enum GITypeTag"><span class="returnvalue">GITypeTag</span></a>
203 g_type_info_get_tag (<em class="parameter"><code><a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a> *info</code></em>);</pre>
204 <p>Obtain the type tag for the type. See <a class="link" href="gi-Common-Types.html#GITypeTag" title="enum GITypeTag"><span class="type">GITypeTag</span></a> for a list
205 of type tags.</p>
206 <div class="refsect3">
207 <a name="g-type-info-get-tag.parameters"></a><h4>Parameters</h4>
208 <div class="informaltable"><table class="informaltable" width="100%" border="0">
209 <colgroup>
210 <col width="150px" class="parameters_name">
211 <col class="parameters_description">
212 <col width="200px" class="parameters_annotations">
213 </colgroup>
214 <tbody><tr>
215 <td class="parameter_name"><p>info</p></td>
216 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
217 <td class="parameter_annotations"> </td>
218 </tr></tbody>
219 </table></div>
220 </div>
221 <div class="refsect3">
222 <a name="g-type-info-get-tag.returns"></a><h4>Returns</h4>
223 <p> the type tag</p>
224 </div>
225 </div>
226 <hr>
227 <div class="refsect2">
228 <a name="g-type-info-get-param-type"></a><h3>g_type_info_get_param_type ()</h3>
229 <pre class="programlisting"><a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="returnvalue">GITypeInfo</span></a> *
230 g_type_info_get_param_type (<em class="parameter"><code><a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a> *info</code></em>,
231                             <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n</code></em>);</pre>
232 <p>Obtain the parameter type <em class="parameter"><code>n</code></em>
233 .</p>
234 <div class="refsect3">
235 <a name="g-type-info-get-param-type.parameters"></a><h4>Parameters</h4>
236 <div class="informaltable"><table class="informaltable" width="100%" border="0">
237 <colgroup>
238 <col width="150px" class="parameters_name">
239 <col class="parameters_description">
240 <col width="200px" class="parameters_annotations">
241 </colgroup>
242 <tbody>
243 <tr>
244 <td class="parameter_name"><p>info</p></td>
245 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
246 <td class="parameter_annotations"> </td>
247 </tr>
248 <tr>
249 <td class="parameter_name"><p>n</p></td>
250 <td class="parameter_description"><p>index of the parameter</p></td>
251 <td class="parameter_annotations"> </td>
252 </tr>
253 </tbody>
254 </table></div>
255 </div>
256 <div class="refsect3">
257 <a name="g-type-info-get-param-type.returns"></a><h4>Returns</h4>
258 <p>the param type info. </p>
259 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
260 </div>
261 </div>
262 <hr>
263 <div class="refsect2">
264 <a name="g-type-info-get-interface"></a><h3>g_type_info_get_interface ()</h3>
265 <pre class="programlisting"><a class="link" href="GIBaseInfo.html" title="GIBaseInfo"><span class="returnvalue">GIBaseInfo</span></a> *
266 g_type_info_get_interface (<em class="parameter"><code><a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a> *info</code></em>);</pre>
267 <p>For types which have <a class="link" href="gi-Common-Types.html#GI-TYPE-TAG-INTERFACE:CAPS"><span class="type">GI_TYPE_TAG_INTERFACE</span></a> such as GObjects and boxed values,
268 this function returns full information about the referenced type.  You can then
269 inspect the type of the returned <a class="link" href="GIBaseInfo.html" title="GIBaseInfo"><span class="type">GIBaseInfo</span></a> to further query whether it is
270 a concrete GObject, a GInterface, a structure, etc. using <a class="link" href="GIBaseInfo.html#g-base-info-get-type" title="g_base_info_get_type ()"><code class="function">g_base_info_get_type()</code></a>.</p>
271 <div class="refsect3">
272 <a name="g-type-info-get-interface.parameters"></a><h4>Parameters</h4>
273 <div class="informaltable"><table class="informaltable" width="100%" border="0">
274 <colgroup>
275 <col width="150px" class="parameters_name">
276 <col class="parameters_description">
277 <col width="200px" class="parameters_annotations">
278 </colgroup>
279 <tbody><tr>
280 <td class="parameter_name"><p>info</p></td>
281 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
282 <td class="parameter_annotations"> </td>
283 </tr></tbody>
284 </table></div>
285 </div>
286 <div class="refsect3">
287 <a name="g-type-info-get-interface.returns"></a><h4>Returns</h4>
288 <p>the <a class="link" href="GIBaseInfo.html" title="GIBaseInfo"><span class="type">GIBaseInfo</span></a>, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. Free it with
289 <a class="link" href="GIBaseInfo.html#g-base-info-unref" title="g_base_info_unref ()"><code class="function">g_base_info_unref()</code></a> when done. </p>
290 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
291 </div>
292 </div>
293 <hr>
294 <div class="refsect2">
295 <a name="g-type-info-get-array-length"></a><h3>g_type_info_get_array_length ()</h3>
296 <pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
297 g_type_info_get_array_length (<em class="parameter"><code><a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a> *info</code></em>);</pre>
298 <p>Obtain the array length of the type. The type tag must be a
299 <a class="link" href="gi-Common-Types.html#GI-TYPE-TAG-ARRAY:CAPS"><span class="type">GI_TYPE_TAG_ARRAY</span></a> or -1 will returned.</p>
300 <div class="refsect3">
301 <a name="g-type-info-get-array-length.parameters"></a><h4>Parameters</h4>
302 <div class="informaltable"><table class="informaltable" width="100%" border="0">
303 <colgroup>
304 <col width="150px" class="parameters_name">
305 <col class="parameters_description">
306 <col width="200px" class="parameters_annotations">
307 </colgroup>
308 <tbody><tr>
309 <td class="parameter_name"><p>info</p></td>
310 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
311 <td class="parameter_annotations"> </td>
312 </tr></tbody>
313 </table></div>
314 </div>
315 <div class="refsect3">
316 <a name="g-type-info-get-array-length.returns"></a><h4>Returns</h4>
317 <p> the array length, or -1 if the type is not an array</p>
318 </div>
319 </div>
320 <hr>
321 <div class="refsect2">
322 <a name="g-type-info-get-array-fixed-size"></a><h3>g_type_info_get_array_fixed_size ()</h3>
323 <pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
324 g_type_info_get_array_fixed_size (<em class="parameter"><code><a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a> *info</code></em>);</pre>
325 <p>Obtain the fixed array size of the type. The type tag must be a
326 <a class="link" href="gi-Common-Types.html#GI-TYPE-TAG-ARRAY:CAPS"><span class="type">GI_TYPE_TAG_ARRAY</span></a> or -1 will returned.</p>
327 <div class="refsect3">
328 <a name="g-type-info-get-array-fixed-size.parameters"></a><h4>Parameters</h4>
329 <div class="informaltable"><table class="informaltable" width="100%" border="0">
330 <colgroup>
331 <col width="150px" class="parameters_name">
332 <col class="parameters_description">
333 <col width="200px" class="parameters_annotations">
334 </colgroup>
335 <tbody><tr>
336 <td class="parameter_name"><p>info</p></td>
337 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
338 <td class="parameter_annotations"> </td>
339 </tr></tbody>
340 </table></div>
341 </div>
342 <div class="refsect3">
343 <a name="g-type-info-get-array-fixed-size.returns"></a><h4>Returns</h4>
344 <p> the size or -1 if it's not an array</p>
345 </div>
346 </div>
347 <hr>
348 <div class="refsect2">
349 <a name="g-type-info-is-zero-terminated"></a><h3>g_type_info_is_zero_terminated ()</h3>
350 <pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
351 g_type_info_is_zero_terminated (<em class="parameter"><code><a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a> *info</code></em>);</pre>
352 <p>Obtain if the last element of the array is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. The type tag must be a
353 <a class="link" href="gi-Common-Types.html#GI-TYPE-TAG-ARRAY:CAPS"><span class="type">GI_TYPE_TAG_ARRAY</span></a> or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will returned.</p>
354 <div class="refsect3">
355 <a name="g-type-info-is-zero-terminated.parameters"></a><h4>Parameters</h4>
356 <div class="informaltable"><table class="informaltable" width="100%" border="0">
357 <colgroup>
358 <col width="150px" class="parameters_name">
359 <col class="parameters_description">
360 <col width="200px" class="parameters_annotations">
361 </colgroup>
362 <tbody><tr>
363 <td class="parameter_name"><p>info</p></td>
364 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
365 <td class="parameter_annotations"> </td>
366 </tr></tbody>
367 </table></div>
368 </div>
369 <div class="refsect3">
370 <a name="g-type-info-is-zero-terminated.returns"></a><h4>Returns</h4>
371 <p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if zero terminated</p>
372 </div>
373 </div>
374 <hr>
375 <div class="refsect2">
376 <a name="g-type-info-get-array-type"></a><h3>g_type_info_get_array_type ()</h3>
377 <pre class="programlisting"><a class="link" href="gi-Common-Types.html#GIArrayType" title="enum GIArrayType"><span class="returnvalue">GIArrayType</span></a>
378 g_type_info_get_array_type (<em class="parameter"><code><a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a> *info</code></em>);</pre>
379 <p>Obtain the array type for this type. See <a class="link" href="gi-Common-Types.html#GIArrayType" title="enum GIArrayType"><span class="type">GIArrayType</span></a> for a list of
380 possible values. If the type tag of this type is not array, -1 will be
381 returned.</p>
382 <div class="refsect3">
383 <a name="g-type-info-get-array-type.parameters"></a><h4>Parameters</h4>
384 <div class="informaltable"><table class="informaltable" width="100%" border="0">
385 <colgroup>
386 <col width="150px" class="parameters_name">
387 <col class="parameters_description">
388 <col width="200px" class="parameters_annotations">
389 </colgroup>
390 <tbody><tr>
391 <td class="parameter_name"><p>info</p></td>
392 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
393 <td class="parameter_annotations"> </td>
394 </tr></tbody>
395 </table></div>
396 </div>
397 <div class="refsect3">
398 <a name="g-type-info-get-array-type.returns"></a><h4>Returns</h4>
399 <p> the array type or -1</p>
400 </div>
401 </div>
402 </div>
403 <div class="refsect1">
404 <a name="gi-GITypeInfo.other_details"></a><h2>Types and Values</h2>
405 <div class="refsect2">
406 <a name="GITypeInfo"></a><h3>GITypeInfo</h3>
407 <pre class="programlisting">typedef GIBaseInfo GITypeInfo;
408 </pre>
409 <p>Represents type information, direction, transfer etc.</p>
410 </div>
411 </div>
412 </div>
413 <div class="footer">
414 <hr>Generated by GTK-Doc V1.28</div>
415 </body>
416 </html>