Imported Upstream version 1.45.4
[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: GObject Introspection Reference Manual</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="index.html" title="GObject Introspection Reference Manual">
8 <link rel="up" href="ch01.html" title="GIRepository">
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.24.1 (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 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">const <span class="returnvalue">gchar</span> *
50 </td>
51 <td class="function_name">
52 <a class="link" href="gi-GITypeInfo.html#g-type-tag-to-string" title="g_type_tag_to_string ()">g_type_tag_to_string</a> <span class="c_punctuation">()</span>
53 </td>
54 </tr>
55 <tr>
56 <td class="function_type">const <span class="returnvalue">gchar</span> *
57 </td>
58 <td class="function_name">
59 <a class="link" href="gi-GITypeInfo.html#g-info-type-to-string" title="g_info_type_to_string ()">g_info_type_to_string</a> <span class="c_punctuation">()</span>
60 </td>
61 </tr>
62 <tr>
63 <td class="function_type">
64 <span class="returnvalue">gboolean</span>
65 </td>
66 <td class="function_name">
67 <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>
68 </td>
69 </tr>
70 <tr>
71 <td class="function_type">
72 <a class="link" href="gi-common-types.html#GITypeTag" title="enum GITypeTag"><span class="returnvalue">GITypeTag</span></a>
73 </td>
74 <td class="function_name">
75 <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>
76 </td>
77 </tr>
78 <tr>
79 <td class="function_type">
80 <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="returnvalue">GITypeInfo</span></a> *
81 </td>
82 <td class="function_name">
83 <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>
84 </td>
85 </tr>
86 <tr>
87 <td class="function_type">
88 <span class="returnvalue">GIBaseInfo</span> *
89 </td>
90 <td class="function_name">
91 <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>
92 </td>
93 </tr>
94 <tr>
95 <td class="function_type">
96 <span class="returnvalue">gint</span>
97 </td>
98 <td class="function_name">
99 <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>
100 </td>
101 </tr>
102 <tr>
103 <td class="function_type">
104 <span class="returnvalue">gint</span>
105 </td>
106 <td class="function_name">
107 <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>
108 </td>
109 </tr>
110 <tr>
111 <td class="function_type">
112 <span class="returnvalue">gboolean</span>
113 </td>
114 <td class="function_name">
115 <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>
116 </td>
117 </tr>
118 <tr>
119 <td class="function_type">
120 <a class="link" href="gi-common-types.html#GIArrayType" title="enum GIArrayType"><span class="returnvalue">GIArrayType</span></a>
121 </td>
122 <td class="function_name">
123 <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>
124 </td>
125 </tr>
126 </tbody>
127 </table></div>
128 </div>
129 <div class="refsect1">
130 <a name="gi-GITypeInfo.other"></a><h2>Types and Values</h2>
131 <div class="informaltable"><table width="100%" border="0">
132 <colgroup>
133 <col width="150px" class="name">
134 <col class="description">
135 </colgroup>
136 <tbody><tr>
137 <td class="typedef_keyword">typedef</td>
138 <td class="function_name"><a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo">GITypeInfo</a></td>
139 </tr></tbody>
140 </table></div>
141 </div>
142 <div class="refsect1">
143 <a name="gi-GITypeInfo.description"></a><h2>Description</h2>
144 <p>GITypeInfo represents a type. You can retrieve a type info from
145 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>),
146 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
147 (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>
148 <p>A type can either be a of a basic type which is a standard C primitive
149 type or an interface type. For interface types you need to call
150 <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
151 interface.</p>
152 <div class="refsect1">
153 <a name="gi-gitypeinfo.struct-hierarchy"></a><h2>Struct hierarchy</h2>
154 <pre class="synopsis">
155   <a class="link" href="gi-GIBaseInfo.html" title="GIBaseInfo">GIBaseInfo</a>
156    +----GITypeInfo
157 </pre>
158 </div>
159 </div>
160 <div class="refsect1">
161 <a name="gi-GITypeInfo.functions_details"></a><h2>Functions</h2>
162 <div class="refsect2">
163 <a name="GI-IS-TYPE-INFO:CAPS"></a><h3>GI_IS_TYPE_INFO()</h3>
164 <pre class="programlisting">#define             GI_IS_TYPE_INFO(info)</pre>
165 <p>Checks if <em class="parameter"><code>info</code></em>
166  is a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a>.</p>
167 <div class="refsect3">
168 <a name="id-1.4.2.21.6.2.5"></a><h4>Parameters</h4>
169 <div class="informaltable"><table width="100%" border="0">
170 <colgroup>
171 <col width="150px" class="parameters_name">
172 <col class="parameters_description">
173 <col width="200px" class="parameters_annotations">
174 </colgroup>
175 <tbody><tr>
176 <td class="parameter_name"><p>info</p></td>
177 <td class="parameter_description"><p>an info structure</p></td>
178 <td class="parameter_annotations"> </td>
179 </tr></tbody>
180 </table></div>
181 </div>
182 </div>
183 <hr>
184 <div class="refsect2">
185 <a name="g-type-tag-to-string"></a><h3>g_type_tag_to_string ()</h3>
186 <pre class="programlisting">const <span class="returnvalue">gchar</span> *
187 g_type_tag_to_string (<em class="parameter"><code><a class="link" href="gi-common-types.html#GITypeTag" title="enum GITypeTag"><span class="type">GITypeTag</span></a> type</code></em>);</pre>
188 <p>Obtain a string representation of <em class="parameter"><code>type</code></em>
189 </p>
190 <div class="refsect3">
191 <a name="id-1.4.2.21.6.3.5"></a><h4>Parameters</h4>
192 <div class="informaltable"><table width="100%" border="0">
193 <colgroup>
194 <col width="150px" class="parameters_name">
195 <col class="parameters_description">
196 <col width="200px" class="parameters_annotations">
197 </colgroup>
198 <tbody><tr>
199 <td class="parameter_name"><p>type</p></td>
200 <td class="parameter_description"><p>the type_tag</p></td>
201 <td class="parameter_annotations"> </td>
202 </tr></tbody>
203 </table></div>
204 </div>
205 <div class="refsect3">
206 <a name="id-1.4.2.21.6.3.6"></a><h4>Returns</h4>
207 <p> the string</p>
208 </div>
209 </div>
210 <hr>
211 <div class="refsect2">
212 <a name="g-info-type-to-string"></a><h3>g_info_type_to_string ()</h3>
213 <pre class="programlisting">const <span class="returnvalue">gchar</span> *
214 g_info_type_to_string (<em class="parameter"><code><a class="link" href="gi-GIBaseInfo.html#GIInfoType" title="enum GIInfoType"><span class="type">GIInfoType</span></a> type</code></em>);</pre>
215 <p>Obtain a string representation of <em class="parameter"><code>type</code></em>
216 </p>
217 <div class="refsect3">
218 <a name="id-1.4.2.21.6.4.5"></a><h4>Parameters</h4>
219 <div class="informaltable"><table width="100%" border="0">
220 <colgroup>
221 <col width="150px" class="parameters_name">
222 <col class="parameters_description">
223 <col width="200px" class="parameters_annotations">
224 </colgroup>
225 <tbody><tr>
226 <td class="parameter_name"><p>type</p></td>
227 <td class="parameter_description"><p>the info type</p></td>
228 <td class="parameter_annotations"> </td>
229 </tr></tbody>
230 </table></div>
231 </div>
232 <div class="refsect3">
233 <a name="id-1.4.2.21.6.4.6"></a><h4>Returns</h4>
234 <p> the string</p>
235 </div>
236 </div>
237 <hr>
238 <div class="refsect2">
239 <a name="g-type-info-is-pointer"></a><h3>g_type_info_is_pointer ()</h3>
240 <pre class="programlisting"><span class="returnvalue">gboolean</span>
241 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>
242 <p>Obtain if the type is passed as a reference.</p>
243 <div class="refsect3">
244 <a name="id-1.4.2.21.6.5.5"></a><h4>Parameters</h4>
245 <div class="informaltable"><table width="100%" border="0">
246 <colgroup>
247 <col width="150px" class="parameters_name">
248 <col class="parameters_description">
249 <col width="200px" class="parameters_annotations">
250 </colgroup>
251 <tbody><tr>
252 <td class="parameter_name"><p>info</p></td>
253 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
254 <td class="parameter_annotations"> </td>
255 </tr></tbody>
256 </table></div>
257 </div>
258 <div class="refsect3">
259 <a name="id-1.4.2.21.6.5.6"></a><h4>Returns</h4>
260 <p> <code class="literal">TRUE</code> if it is a pointer</p>
261 </div>
262 </div>
263 <hr>
264 <div class="refsect2">
265 <a name="g-type-info-get-tag"></a><h3>g_type_info_get_tag ()</h3>
266 <pre class="programlisting"><a class="link" href="gi-common-types.html#GITypeTag" title="enum GITypeTag"><span class="returnvalue">GITypeTag</span></a>
267 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>
268 <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
269 of type tags.</p>
270 <div class="refsect3">
271 <a name="id-1.4.2.21.6.6.5"></a><h4>Parameters</h4>
272 <div class="informaltable"><table width="100%" border="0">
273 <colgroup>
274 <col width="150px" class="parameters_name">
275 <col class="parameters_description">
276 <col width="200px" class="parameters_annotations">
277 </colgroup>
278 <tbody><tr>
279 <td class="parameter_name"><p>info</p></td>
280 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
281 <td class="parameter_annotations"> </td>
282 </tr></tbody>
283 </table></div>
284 </div>
285 <div class="refsect3">
286 <a name="id-1.4.2.21.6.6.6"></a><h4>Returns</h4>
287 <p> the type tag</p>
288 </div>
289 </div>
290 <hr>
291 <div class="refsect2">
292 <a name="g-type-info-get-param-type"></a><h3>g_type_info_get_param_type ()</h3>
293 <pre class="programlisting"><a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="returnvalue">GITypeInfo</span></a> *
294 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>,
295                             <em class="parameter"><code><span class="type">gint</span> n</code></em>);</pre>
296 <p>Obtain the parameter type <em class="parameter"><code>n</code></em>
297 .</p>
298 <div class="refsect3">
299 <a name="id-1.4.2.21.6.7.5"></a><h4>Parameters</h4>
300 <div class="informaltable"><table width="100%" border="0">
301 <colgroup>
302 <col width="150px" class="parameters_name">
303 <col class="parameters_description">
304 <col width="200px" class="parameters_annotations">
305 </colgroup>
306 <tbody>
307 <tr>
308 <td class="parameter_name"><p>info</p></td>
309 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
310 <td class="parameter_annotations"> </td>
311 </tr>
312 <tr>
313 <td class="parameter_name"><p>n</p></td>
314 <td class="parameter_description"><p>index of the parameter</p></td>
315 <td class="parameter_annotations"> </td>
316 </tr>
317 </tbody>
318 </table></div>
319 </div>
320 <div class="refsect3">
321 <a name="id-1.4.2.21.6.7.6"></a><h4>Returns</h4>
322 <p> the param type info. </p>
323 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
324 </div>
325 </div>
326 <hr>
327 <div class="refsect2">
328 <a name="g-type-info-get-interface"></a><h3>g_type_info_get_interface ()</h3>
329 <pre class="programlisting"><span class="returnvalue">GIBaseInfo</span> *
330 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>
331 <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,
332 this function returns full information about the referenced type.  You can then
333 inspect the type of the returned <span class="type">GIBaseInfo</span> to further query whether it is
334 a concrete GObject, a GInterface, a structure, etc. using <a class="link" href="gi-GIBaseInfo.html#g-base-info-get-type" title="g_base_info_get_type ()"><code class="function">g_base_info_get_type()</code></a>.</p>
335 <div class="refsect3">
336 <a name="id-1.4.2.21.6.8.5"></a><h4>Parameters</h4>
337 <div class="informaltable"><table width="100%" border="0">
338 <colgroup>
339 <col width="150px" class="parameters_name">
340 <col class="parameters_description">
341 <col width="200px" class="parameters_annotations">
342 </colgroup>
343 <tbody><tr>
344 <td class="parameter_name"><p>info</p></td>
345 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
346 <td class="parameter_annotations"> </td>
347 </tr></tbody>
348 </table></div>
349 </div>
350 <div class="refsect3">
351 <a name="id-1.4.2.21.6.8.6"></a><h4>Returns</h4>
352 <p> the <span class="type">GIBaseInfo</span>, or <code class="literal">NULL</code>. Free it with
353 <a class="link" href="gi-GIBaseInfo.html#g-base-info-unref" title="g_base_info_unref ()"><code class="function">g_base_info_unref()</code></a> when done. </p>
354 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
355 </div>
356 </div>
357 <hr>
358 <div class="refsect2">
359 <a name="g-type-info-get-array-length"></a><h3>g_type_info_get_array_length ()</h3>
360 <pre class="programlisting"><span class="returnvalue">gint</span>
361 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>
362 <p>Obtain the array length of the type. The type tag must be a
363 <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>
364 <div class="refsect3">
365 <a name="id-1.4.2.21.6.9.5"></a><h4>Parameters</h4>
366 <div class="informaltable"><table width="100%" border="0">
367 <colgroup>
368 <col width="150px" class="parameters_name">
369 <col class="parameters_description">
370 <col width="200px" class="parameters_annotations">
371 </colgroup>
372 <tbody><tr>
373 <td class="parameter_name"><p>info</p></td>
374 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
375 <td class="parameter_annotations"> </td>
376 </tr></tbody>
377 </table></div>
378 </div>
379 <div class="refsect3">
380 <a name="id-1.4.2.21.6.9.6"></a><h4>Returns</h4>
381 <p> the array length, or -1 if the type is not an array</p>
382 </div>
383 </div>
384 <hr>
385 <div class="refsect2">
386 <a name="g-type-info-get-array-fixed-size"></a><h3>g_type_info_get_array_fixed_size ()</h3>
387 <pre class="programlisting"><span class="returnvalue">gint</span>
388 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>
389 <p>Obtain the fixed array size of the type. The type tag must be a
390 <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>
391 <div class="refsect3">
392 <a name="id-1.4.2.21.6.10.5"></a><h4>Parameters</h4>
393 <div class="informaltable"><table width="100%" border="0">
394 <colgroup>
395 <col width="150px" class="parameters_name">
396 <col class="parameters_description">
397 <col width="200px" class="parameters_annotations">
398 </colgroup>
399 <tbody><tr>
400 <td class="parameter_name"><p>info</p></td>
401 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
402 <td class="parameter_annotations"> </td>
403 </tr></tbody>
404 </table></div>
405 </div>
406 <div class="refsect3">
407 <a name="id-1.4.2.21.6.10.6"></a><h4>Returns</h4>
408 <p> the size or -1 if it's not an array</p>
409 </div>
410 </div>
411 <hr>
412 <div class="refsect2">
413 <a name="g-type-info-is-zero-terminated"></a><h3>g_type_info_is_zero_terminated ()</h3>
414 <pre class="programlisting"><span class="returnvalue">gboolean</span>
415 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>
416 <p>Obtain if the last element of the array is <code class="literal">NULL</code>. The type tag must be a
417 <a class="link" href="gi-common-types.html#GI-TYPE-TAG-ARRAY:CAPS"><span class="type">GI_TYPE_TAG_ARRAY</span></a> or <code class="literal">FALSE</code> will returned.</p>
418 <div class="refsect3">
419 <a name="id-1.4.2.21.6.11.5"></a><h4>Parameters</h4>
420 <div class="informaltable"><table width="100%" border="0">
421 <colgroup>
422 <col width="150px" class="parameters_name">
423 <col class="parameters_description">
424 <col width="200px" class="parameters_annotations">
425 </colgroup>
426 <tbody><tr>
427 <td class="parameter_name"><p>info</p></td>
428 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
429 <td class="parameter_annotations"> </td>
430 </tr></tbody>
431 </table></div>
432 </div>
433 <div class="refsect3">
434 <a name="id-1.4.2.21.6.11.6"></a><h4>Returns</h4>
435 <p> <code class="literal">TRUE</code> if zero terminated</p>
436 </div>
437 </div>
438 <hr>
439 <div class="refsect2">
440 <a name="g-type-info-get-array-type"></a><h3>g_type_info_get_array_type ()</h3>
441 <pre class="programlisting"><a class="link" href="gi-common-types.html#GIArrayType" title="enum GIArrayType"><span class="returnvalue">GIArrayType</span></a>
442 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>
443 <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
444 possible values. If the type tag of this type is not array, -1 will be
445 returned.</p>
446 <div class="refsect3">
447 <a name="id-1.4.2.21.6.12.5"></a><h4>Parameters</h4>
448 <div class="informaltable"><table width="100%" border="0">
449 <colgroup>
450 <col width="150px" class="parameters_name">
451 <col class="parameters_description">
452 <col width="200px" class="parameters_annotations">
453 </colgroup>
454 <tbody><tr>
455 <td class="parameter_name"><p>info</p></td>
456 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
457 <td class="parameter_annotations"> </td>
458 </tr></tbody>
459 </table></div>
460 </div>
461 <div class="refsect3">
462 <a name="id-1.4.2.21.6.12.6"></a><h4>Returns</h4>
463 <p> the array type or -1</p>
464 </div>
465 </div>
466 </div>
467 <div class="refsect1">
468 <a name="gi-GITypeInfo.other_details"></a><h2>Types and Values</h2>
469 <div class="refsect2">
470 <a name="GITypeInfo"></a><h3>GITypeInfo</h3>
471 <pre class="programlisting">typedef GIBaseInfo GITypeInfo;
472 </pre>
473 <p>Represents type information, direction, transfer etc.</p>
474 </div>
475 </div>
476 </div>
477 <div class="footer">
478 <hr>Generated by GTK-Doc V1.24.1</div>
479 </body>
480 </html>