Imported Upstream version 1.56.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: GObject Introspection Reference Manual</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.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.28.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 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">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 class="informaltable" 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="GI-IS-TYPE-INFO.parameters"></a><h4>Parameters</h4>
169 <div class="informaltable"><table class="informaltable" 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="g-type-tag-to-string.parameters"></a><h4>Parameters</h4>
192 <div class="informaltable"><table class="informaltable" 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="g-type-tag-to-string.returns"></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="g-info-type-to-string.parameters"></a><h4>Parameters</h4>
219 <div class="informaltable"><table class="informaltable" 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="g-info-type-to-string.returns"></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 <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
244 will only be pointers if the underlying type being transferred is a pointer
245 (i.e. only if the type of the C function’s formal parameter is a pointer to a
246 pointer).</p>
247 <div class="refsect3">
248 <a name="g-type-info-is-pointer.parameters"></a><h4>Parameters</h4>
249 <div class="informaltable"><table class="informaltable" width="100%" border="0">
250 <colgroup>
251 <col width="150px" class="parameters_name">
252 <col class="parameters_description">
253 <col width="200px" class="parameters_annotations">
254 </colgroup>
255 <tbody><tr>
256 <td class="parameter_name"><p>info</p></td>
257 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
258 <td class="parameter_annotations"> </td>
259 </tr></tbody>
260 </table></div>
261 </div>
262 <div class="refsect3">
263 <a name="g-type-info-is-pointer.returns"></a><h4>Returns</h4>
264 <p> <code class="literal">TRUE</code> if it is a pointer</p>
265 </div>
266 </div>
267 <hr>
268 <div class="refsect2">
269 <a name="g-type-info-get-tag"></a><h3>g_type_info_get_tag ()</h3>
270 <pre class="programlisting"><a class="link" href="gi-common-types.html#GITypeTag" title="enum GITypeTag"><span class="returnvalue">GITypeTag</span></a>
271 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>
272 <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
273 of type tags.</p>
274 <div class="refsect3">
275 <a name="g-type-info-get-tag.parameters"></a><h4>Parameters</h4>
276 <div class="informaltable"><table class="informaltable" width="100%" border="0">
277 <colgroup>
278 <col width="150px" class="parameters_name">
279 <col class="parameters_description">
280 <col width="200px" class="parameters_annotations">
281 </colgroup>
282 <tbody><tr>
283 <td class="parameter_name"><p>info</p></td>
284 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
285 <td class="parameter_annotations"> </td>
286 </tr></tbody>
287 </table></div>
288 </div>
289 <div class="refsect3">
290 <a name="g-type-info-get-tag.returns"></a><h4>Returns</h4>
291 <p> the type tag</p>
292 </div>
293 </div>
294 <hr>
295 <div class="refsect2">
296 <a name="g-type-info-get-param-type"></a><h3>g_type_info_get_param_type ()</h3>
297 <pre class="programlisting"><a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="returnvalue">GITypeInfo</span></a> *
298 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>,
299                             <em class="parameter"><code><span class="type">gint</span> n</code></em>);</pre>
300 <p>Obtain the parameter type <em class="parameter"><code>n</code></em>
301 .</p>
302 <div class="refsect3">
303 <a name="g-type-info-get-param-type.parameters"></a><h4>Parameters</h4>
304 <div class="informaltable"><table class="informaltable" width="100%" border="0">
305 <colgroup>
306 <col width="150px" class="parameters_name">
307 <col class="parameters_description">
308 <col width="200px" class="parameters_annotations">
309 </colgroup>
310 <tbody>
311 <tr>
312 <td class="parameter_name"><p>info</p></td>
313 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
314 <td class="parameter_annotations"> </td>
315 </tr>
316 <tr>
317 <td class="parameter_name"><p>n</p></td>
318 <td class="parameter_description"><p>index of the parameter</p></td>
319 <td class="parameter_annotations"> </td>
320 </tr>
321 </tbody>
322 </table></div>
323 </div>
324 <div class="refsect3">
325 <a name="g-type-info-get-param-type.returns"></a><h4>Returns</h4>
326 <p>the param type info. </p>
327 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
328 </div>
329 </div>
330 <hr>
331 <div class="refsect2">
332 <a name="g-type-info-get-interface"></a><h3>g_type_info_get_interface ()</h3>
333 <pre class="programlisting"><span class="returnvalue">GIBaseInfo</span> *
334 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>
335 <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,
336 this function returns full information about the referenced type.  You can then
337 inspect the type of the returned <span class="type">GIBaseInfo</span> to further query whether it is
338 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>
339 <div class="refsect3">
340 <a name="g-type-info-get-interface.parameters"></a><h4>Parameters</h4>
341 <div class="informaltable"><table class="informaltable" width="100%" border="0">
342 <colgroup>
343 <col width="150px" class="parameters_name">
344 <col class="parameters_description">
345 <col width="200px" class="parameters_annotations">
346 </colgroup>
347 <tbody><tr>
348 <td class="parameter_name"><p>info</p></td>
349 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
350 <td class="parameter_annotations"> </td>
351 </tr></tbody>
352 </table></div>
353 </div>
354 <div class="refsect3">
355 <a name="g-type-info-get-interface.returns"></a><h4>Returns</h4>
356 <p>the <span class="type">GIBaseInfo</span>, or <code class="literal">NULL</code>. Free it with
357 <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>
358 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
359 </div>
360 </div>
361 <hr>
362 <div class="refsect2">
363 <a name="g-type-info-get-array-length"></a><h3>g_type_info_get_array_length ()</h3>
364 <pre class="programlisting"><span class="returnvalue">gint</span>
365 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>
366 <p>Obtain the array length of the type. The type tag must be a
367 <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>
368 <div class="refsect3">
369 <a name="g-type-info-get-array-length.parameters"></a><h4>Parameters</h4>
370 <div class="informaltable"><table class="informaltable" width="100%" border="0">
371 <colgroup>
372 <col width="150px" class="parameters_name">
373 <col class="parameters_description">
374 <col width="200px" class="parameters_annotations">
375 </colgroup>
376 <tbody><tr>
377 <td class="parameter_name"><p>info</p></td>
378 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
379 <td class="parameter_annotations"> </td>
380 </tr></tbody>
381 </table></div>
382 </div>
383 <div class="refsect3">
384 <a name="g-type-info-get-array-length.returns"></a><h4>Returns</h4>
385 <p> the array length, or -1 if the type is not an array</p>
386 </div>
387 </div>
388 <hr>
389 <div class="refsect2">
390 <a name="g-type-info-get-array-fixed-size"></a><h3>g_type_info_get_array_fixed_size ()</h3>
391 <pre class="programlisting"><span class="returnvalue">gint</span>
392 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>
393 <p>Obtain the fixed array size of the type. The type tag must be a
394 <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>
395 <div class="refsect3">
396 <a name="g-type-info-get-array-fixed-size.parameters"></a><h4>Parameters</h4>
397 <div class="informaltable"><table class="informaltable" width="100%" border="0">
398 <colgroup>
399 <col width="150px" class="parameters_name">
400 <col class="parameters_description">
401 <col width="200px" class="parameters_annotations">
402 </colgroup>
403 <tbody><tr>
404 <td class="parameter_name"><p>info</p></td>
405 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
406 <td class="parameter_annotations"> </td>
407 </tr></tbody>
408 </table></div>
409 </div>
410 <div class="refsect3">
411 <a name="g-type-info-get-array-fixed-size.returns"></a><h4>Returns</h4>
412 <p> the size or -1 if it's not an array</p>
413 </div>
414 </div>
415 <hr>
416 <div class="refsect2">
417 <a name="g-type-info-is-zero-terminated"></a><h3>g_type_info_is_zero_terminated ()</h3>
418 <pre class="programlisting"><span class="returnvalue">gboolean</span>
419 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>
420 <p>Obtain if the last element of the array is <code class="literal">NULL</code>. The type tag must be a
421 <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>
422 <div class="refsect3">
423 <a name="g-type-info-is-zero-terminated.parameters"></a><h4>Parameters</h4>
424 <div class="informaltable"><table class="informaltable" width="100%" border="0">
425 <colgroup>
426 <col width="150px" class="parameters_name">
427 <col class="parameters_description">
428 <col width="200px" class="parameters_annotations">
429 </colgroup>
430 <tbody><tr>
431 <td class="parameter_name"><p>info</p></td>
432 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
433 <td class="parameter_annotations"> </td>
434 </tr></tbody>
435 </table></div>
436 </div>
437 <div class="refsect3">
438 <a name="g-type-info-is-zero-terminated.returns"></a><h4>Returns</h4>
439 <p> <code class="literal">TRUE</code> if zero terminated</p>
440 </div>
441 </div>
442 <hr>
443 <div class="refsect2">
444 <a name="g-type-info-get-array-type"></a><h3>g_type_info_get_array_type ()</h3>
445 <pre class="programlisting"><a class="link" href="gi-common-types.html#GIArrayType" title="enum GIArrayType"><span class="returnvalue">GIArrayType</span></a>
446 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>
447 <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
448 possible values. If the type tag of this type is not array, -1 will be
449 returned.</p>
450 <div class="refsect3">
451 <a name="g-type-info-get-array-type.parameters"></a><h4>Parameters</h4>
452 <div class="informaltable"><table class="informaltable" width="100%" border="0">
453 <colgroup>
454 <col width="150px" class="parameters_name">
455 <col class="parameters_description">
456 <col width="200px" class="parameters_annotations">
457 </colgroup>
458 <tbody><tr>
459 <td class="parameter_name"><p>info</p></td>
460 <td class="parameter_description"><p>a <a class="link" href="gi-GITypeInfo.html#GITypeInfo" title="GITypeInfo"><span class="type">GITypeInfo</span></a></p></td>
461 <td class="parameter_annotations"> </td>
462 </tr></tbody>
463 </table></div>
464 </div>
465 <div class="refsect3">
466 <a name="g-type-info-get-array-type.returns"></a><h4>Returns</h4>
467 <p> the array type or -1</p>
468 </div>
469 </div>
470 </div>
471 <div class="refsect1">
472 <a name="gi-GITypeInfo.other_details"></a><h2>Types and Values</h2>
473 <div class="refsect2">
474 <a name="GITypeInfo"></a><h3>GITypeInfo</h3>
475 <pre class="programlisting">typedef GIBaseInfo GITypeInfo;
476 </pre>
477 <p>Represents type information, direction, transfer etc.</p>
478 </div>
479 </div>
480 </div>
481 <div class="footer">
482 <hr>Generated by GTK-Doc V1.28.1</div>
483 </body>
484 </html>