1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>GObject Introspection Reference Manual: GIInterfaceInfo</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-GIObjectInfo.html" title="GIObjectInfo">
10 <link rel="next" href="gi-GIArgInfo.html" title="GIArgInfo">
11 <meta name="generator" content="GTK-Doc V1.21.1 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
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-GIInterfaceInfo.description" class="shortcut">Description</a></span>
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-GIObjectInfo.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23 <td><a accesskey="n" href="gi-GIArgInfo.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
25 <div class="refentry">
26 <a name="gi-GIInterfaceInfo"></a><div class="titlepage"></div>
27 <div class="refnamediv"><table width="100%"><tr>
29 <h2><span class="refentrytitle"><a name="gi-GIInterfaceInfo.top_of_page"></a>GIInterfaceInfo</span></h2>
30 <p>GIInterfaceInfo — Struct representing a GInterface</p>
32 <td class="gallery_image" valign="top" align="right"></td>
34 <div class="refsect1">
35 <a name="gi-GIInterfaceInfo.functions"></a><h2>Functions</h2>
36 <div class="informaltable"><table width="100%" border="0">
38 <col width="150px" class="functions_return">
39 <col class="functions_name">
43 <td class="define_keyword">#define</td>
44 <td class="function_name">
45 <a class="link" href="gi-GIInterfaceInfo.html#GI-IS-INTERFACE-INFO:CAPS" title="GI_IS_INTERFACE_INFO()">GI_IS_INTERFACE_INFO</a><span class="c_punctuation">()</span>
49 <td class="function_type">
50 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
52 <td class="function_name">
53 <a class="link" href="gi-GIInterfaceInfo.html#g-interface-info-get-n-prerequisites" title="g_interface_info_get_n_prerequisites ()">g_interface_info_get_n_prerequisites</a> <span class="c_punctuation">()</span>
57 <td class="function_type">
58 <span class="returnvalue">GIBaseInfo</span> *
60 <td class="function_name">
61 <a class="link" href="gi-GIInterfaceInfo.html#g-interface-info-get-prerequisite" title="g_interface_info_get_prerequisite ()">g_interface_info_get_prerequisite</a> <span class="c_punctuation">()</span>
65 <td class="function_type">
66 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
68 <td class="function_name">
69 <a class="link" href="gi-GIInterfaceInfo.html#g-interface-info-get-n-properties" title="g_interface_info_get_n_properties ()">g_interface_info_get_n_properties</a> <span class="c_punctuation">()</span>
73 <td class="function_type">
74 <a class="link" href="gi-GIPropertyInfo.html#GIPropertyInfo" title="GIPropertyInfo"><span class="returnvalue">GIPropertyInfo</span></a> *
76 <td class="function_name">
77 <a class="link" href="gi-GIInterfaceInfo.html#g-interface-info-get-property" title="g_interface_info_get_property ()">g_interface_info_get_property</a> <span class="c_punctuation">()</span>
81 <td class="function_type">
82 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
84 <td class="function_name">
85 <a class="link" href="gi-GIInterfaceInfo.html#g-interface-info-get-n-methods" title="g_interface_info_get_n_methods ()">g_interface_info_get_n_methods</a> <span class="c_punctuation">()</span>
89 <td class="function_type">
90 <a class="link" href="gi-GIFunctionInfo.html#GIFunctionInfo" title="GIFunctionInfo"><span class="returnvalue">GIFunctionInfo</span></a> *
92 <td class="function_name">
93 <a class="link" href="gi-GIInterfaceInfo.html#g-interface-info-get-method" title="g_interface_info_get_method ()">g_interface_info_get_method</a> <span class="c_punctuation">()</span>
97 <td class="function_type">
98 <a class="link" href="gi-GIFunctionInfo.html#GIFunctionInfo" title="GIFunctionInfo"><span class="returnvalue">GIFunctionInfo</span></a> *
100 <td class="function_name">
101 <a class="link" href="gi-GIInterfaceInfo.html#g-interface-info-find-method" title="g_interface_info_find_method ()">g_interface_info_find_method</a> <span class="c_punctuation">()</span>
105 <td class="function_type">
106 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
108 <td class="function_name">
109 <a class="link" href="gi-GIInterfaceInfo.html#g-interface-info-get-n-signals" title="g_interface_info_get_n_signals ()">g_interface_info_get_n_signals</a> <span class="c_punctuation">()</span>
113 <td class="function_type">
114 <a class="link" href="gi-GISignalInfo.html#GISignalInfo" title="GISignalInfo"><span class="returnvalue">GISignalInfo</span></a> *
116 <td class="function_name">
117 <a class="link" href="gi-GIInterfaceInfo.html#g-interface-info-get-signal" title="g_interface_info_get_signal ()">g_interface_info_get_signal</a> <span class="c_punctuation">()</span>
121 <td class="function_type">
122 <a class="link" href="gi-GISignalInfo.html#GISignalInfo" title="GISignalInfo"><span class="returnvalue">GISignalInfo</span></a> *
124 <td class="function_name">
125 <a class="link" href="gi-GIInterfaceInfo.html#g-interface-info-find-signal" title="g_interface_info_find_signal ()">g_interface_info_find_signal</a> <span class="c_punctuation">()</span>
129 <td class="function_type">
130 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
132 <td class="function_name">
133 <a class="link" href="gi-GIInterfaceInfo.html#g-interface-info-get-n-vfuncs" title="g_interface_info_get_n_vfuncs ()">g_interface_info_get_n_vfuncs</a> <span class="c_punctuation">()</span>
137 <td class="function_type">
138 <a class="link" href="gi-GIVFuncInfo.html#GIVFuncInfo" title="GIVFuncInfo"><span class="returnvalue">GIVFuncInfo</span></a> *
140 <td class="function_name">
141 <a class="link" href="gi-GIInterfaceInfo.html#g-interface-info-get-vfunc" title="g_interface_info_get_vfunc ()">g_interface_info_get_vfunc</a> <span class="c_punctuation">()</span>
145 <td class="function_type">
146 <a class="link" href="gi-GIVFuncInfo.html#GIVFuncInfo" title="GIVFuncInfo"><span class="returnvalue">GIVFuncInfo</span></a> *
148 <td class="function_name">
149 <a class="link" href="gi-GIInterfaceInfo.html#g-interface-info-find-vfunc" title="g_interface_info_find_vfunc ()">g_interface_info_find_vfunc</a> <span class="c_punctuation">()</span>
153 <td class="function_type">
154 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
156 <td class="function_name">
157 <a class="link" href="gi-GIInterfaceInfo.html#g-interface-info-get-n-constants" title="g_interface_info_get_n_constants ()">g_interface_info_get_n_constants</a> <span class="c_punctuation">()</span>
161 <td class="function_type">
162 <a class="link" href="gi-GIConstantInfo.html#GIConstantInfo" title="GIConstantInfo"><span class="returnvalue">GIConstantInfo</span></a> *
164 <td class="function_name">
165 <a class="link" href="gi-GIInterfaceInfo.html#g-interface-info-get-constant" title="g_interface_info_get_constant ()">g_interface_info_get_constant</a> <span class="c_punctuation">()</span>
169 <td class="function_type">
170 <a class="link" href="gi-GIStructInfo.html#GIStructInfo" title="GIStructInfo"><span class="returnvalue">GIStructInfo</span></a> *
172 <td class="function_name">
173 <a class="link" href="gi-GIInterfaceInfo.html#g-interface-info-get-iface-struct" title="g_interface_info_get_iface_struct ()">g_interface_info_get_iface_struct</a> <span class="c_punctuation">()</span>
179 <div class="refsect1">
180 <a name="gi-GIInterfaceInfo.other"></a><h2>Types and Values</h2>
181 <div class="informaltable"><table width="100%" border="0">
183 <col width="150px" class="name">
184 <col class="description">
187 <td class="typedef_keyword">typedef</td>
188 <td class="function_name"><a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo">GIInterfaceInfo</a></td>
192 <div class="refsect1">
193 <a name="gi-GIInterfaceInfo.description"></a><h2>Description</h2>
194 <p>GIInterfaceInfo represents a <span class="type">GInterface</span> type.</p>
195 <p>A GInterface has methods, fields, properties, signals, interfaces, constants,
196 virtual functions and prerequisites.</p>
197 <div class="refsect1">
198 <a name="gi-giinterfaceinfo.struct-hierarchy"></a><h2>Struct hierarchy</h2>
199 <pre class="synopsis">
200 <a class="link" href="gi-GIBaseInfo.html" title="GIBaseInfo">GIBaseInfo</a>
201 +----<a class="link" href="gi-GIRegisteredTypeInfo.html" title="GIRegisteredTypeInfo">GIRegisteredTypeInfo</a>
206 <div class="refsect1">
207 <a name="gi-GIInterfaceInfo.functions_details"></a><h2>Functions</h2>
208 <div class="refsect2">
209 <a name="GI-IS-INTERFACE-INFO:CAPS"></a><h3>GI_IS_INTERFACE_INFO()</h3>
210 <pre class="programlisting">#define GI_IS_INTERFACE_INFO(info)</pre>
211 <p>Checks if <em class="parameter"><code>info</code></em>
212 is a <a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a>.</p>
213 <div class="refsect3">
214 <a name="id-1.4.2.16.6.2.5"></a><h4>Parameters</h4>
215 <div class="informaltable"><table width="100%" border="0">
217 <col width="150px" class="parameters_name">
218 <col class="parameters_description">
219 <col width="200px" class="parameters_annotations">
222 <td class="parameter_name"><p>info</p></td>
223 <td class="parameter_description"><p>an info structure</p></td>
224 <td class="parameter_annotations"> </td>
230 <div class="refsect2">
231 <a name="g-interface-info-get-n-prerequisites"></a><h3>g_interface_info_get_n_prerequisites ()</h3>
232 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
233 g_interface_info_get_n_prerequisites (<em class="parameter"><code><a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a> *info</code></em>);</pre>
234 <p>Obtain the number of prerequisites for this interface type.
235 A prerequisites is another interface that needs to be implemented for
236 interface, similar to an base class for GObjects.</p>
237 <div class="refsect3">
238 <a name="id-1.4.2.16.6.3.5"></a><h4>Parameters</h4>
239 <div class="informaltable"><table width="100%" border="0">
241 <col width="150px" class="parameters_name">
242 <col class="parameters_description">
243 <col width="200px" class="parameters_annotations">
246 <td class="parameter_name"><p>info</p></td>
247 <td class="parameter_description"><p>a <a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a></p></td>
248 <td class="parameter_annotations"> </td>
252 <div class="refsect3">
253 <a name="id-1.4.2.16.6.3.6"></a><h4>Returns</h4>
254 <p> number of prerequisites</p>
259 <div class="refsect2">
260 <a name="g-interface-info-get-prerequisite"></a><h3>g_interface_info_get_prerequisite ()</h3>
261 <pre class="programlisting"><span class="returnvalue">GIBaseInfo</span> *
262 g_interface_info_get_prerequisite (<em class="parameter"><code><a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a> *info</code></em>,
263 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n</code></em>);</pre>
264 <p>Obtain an interface type prerequisites index <em class="parameter"><code>n</code></em>
266 <div class="refsect3">
267 <a name="id-1.4.2.16.6.4.5"></a><h4>Parameters</h4>
268 <div class="informaltable"><table width="100%" border="0">
270 <col width="150px" class="parameters_name">
271 <col class="parameters_description">
272 <col width="200px" class="parameters_annotations">
276 <td class="parameter_name"><p>info</p></td>
277 <td class="parameter_description"><p>a <a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a></p></td>
278 <td class="parameter_annotations"> </td>
281 <td class="parameter_name"><p>n</p></td>
282 <td class="parameter_description"><p>index of prerequisites to get</p></td>
283 <td class="parameter_annotations"> </td>
288 <div class="refsect3">
289 <a name="id-1.4.2.16.6.4.6"></a><h4>Returns</h4>
290 <p> the prerequisites as a <span class="type">GIBaseInfo</span>. Free the struct by calling
291 <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>
292 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
296 <div class="refsect2">
297 <a name="g-interface-info-get-n-properties"></a><h3>g_interface_info_get_n_properties ()</h3>
298 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
299 g_interface_info_get_n_properties (<em class="parameter"><code><a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a> *info</code></em>);</pre>
300 <p>Obtain the number of properties that this interface type has.</p>
301 <div class="refsect3">
302 <a name="id-1.4.2.16.6.5.5"></a><h4>Parameters</h4>
303 <div class="informaltable"><table width="100%" border="0">
305 <col width="150px" class="parameters_name">
306 <col class="parameters_description">
307 <col width="200px" class="parameters_annotations">
310 <td class="parameter_name"><p>info</p></td>
311 <td class="parameter_description"><p>a <a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a></p></td>
312 <td class="parameter_annotations"> </td>
316 <div class="refsect3">
317 <a name="id-1.4.2.16.6.5.6"></a><h4>Returns</h4>
318 <p> number of properties</p>
323 <div class="refsect2">
324 <a name="g-interface-info-get-property"></a><h3>g_interface_info_get_property ()</h3>
325 <pre class="programlisting"><a class="link" href="gi-GIPropertyInfo.html#GIPropertyInfo" title="GIPropertyInfo"><span class="returnvalue">GIPropertyInfo</span></a> *
326 g_interface_info_get_property (<em class="parameter"><code><a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a> *info</code></em>,
327 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n</code></em>);</pre>
328 <p>Obtain an interface type property at index <em class="parameter"><code>n</code></em>
330 <div class="refsect3">
331 <a name="id-1.4.2.16.6.6.5"></a><h4>Parameters</h4>
332 <div class="informaltable"><table width="100%" border="0">
334 <col width="150px" class="parameters_name">
335 <col class="parameters_description">
336 <col width="200px" class="parameters_annotations">
340 <td class="parameter_name"><p>info</p></td>
341 <td class="parameter_description"><p>a <a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a></p></td>
342 <td class="parameter_annotations"> </td>
345 <td class="parameter_name"><p>n</p></td>
346 <td class="parameter_description"><p>index of property to get</p></td>
347 <td class="parameter_annotations"> </td>
352 <div class="refsect3">
353 <a name="id-1.4.2.16.6.6.6"></a><h4>Returns</h4>
354 <p> the <a class="link" href="gi-GIPropertyInfo.html#GIPropertyInfo" title="GIPropertyInfo"><span class="type">GIPropertyInfo</span></a>. Free the struct by calling
355 <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>
356 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
360 <div class="refsect2">
361 <a name="g-interface-info-get-n-methods"></a><h3>g_interface_info_get_n_methods ()</h3>
362 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
363 g_interface_info_get_n_methods (<em class="parameter"><code><a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a> *info</code></em>);</pre>
364 <p>Obtain the number of methods that this interface type has.</p>
365 <div class="refsect3">
366 <a name="id-1.4.2.16.6.7.5"></a><h4>Parameters</h4>
367 <div class="informaltable"><table width="100%" border="0">
369 <col width="150px" class="parameters_name">
370 <col class="parameters_description">
371 <col width="200px" class="parameters_annotations">
374 <td class="parameter_name"><p>info</p></td>
375 <td class="parameter_description"><p>a <a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a></p></td>
376 <td class="parameter_annotations"> </td>
380 <div class="refsect3">
381 <a name="id-1.4.2.16.6.7.6"></a><h4>Returns</h4>
382 <p> number of methods</p>
387 <div class="refsect2">
388 <a name="g-interface-info-get-method"></a><h3>g_interface_info_get_method ()</h3>
389 <pre class="programlisting"><a class="link" href="gi-GIFunctionInfo.html#GIFunctionInfo" title="GIFunctionInfo"><span class="returnvalue">GIFunctionInfo</span></a> *
390 g_interface_info_get_method (<em class="parameter"><code><a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a> *info</code></em>,
391 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n</code></em>);</pre>
392 <p>Obtain an interface type method at index <em class="parameter"><code>n</code></em>
394 <div class="refsect3">
395 <a name="id-1.4.2.16.6.8.5"></a><h4>Parameters</h4>
396 <div class="informaltable"><table width="100%" border="0">
398 <col width="150px" class="parameters_name">
399 <col class="parameters_description">
400 <col width="200px" class="parameters_annotations">
404 <td class="parameter_name"><p>info</p></td>
405 <td class="parameter_description"><p>a <a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a></p></td>
406 <td class="parameter_annotations"> </td>
409 <td class="parameter_name"><p>n</p></td>
410 <td class="parameter_description"><p>index of method to get</p></td>
411 <td class="parameter_annotations"> </td>
416 <div class="refsect3">
417 <a name="id-1.4.2.16.6.8.6"></a><h4>Returns</h4>
418 <p> the <a class="link" href="gi-GIFunctionInfo.html#GIFunctionInfo" title="GIFunctionInfo"><span class="type">GIFunctionInfo</span></a>. Free the struct by calling
419 <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>
420 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
424 <div class="refsect2">
425 <a name="g-interface-info-find-method"></a><h3>g_interface_info_find_method ()</h3>
426 <pre class="programlisting"><a class="link" href="gi-GIFunctionInfo.html#GIFunctionInfo" title="GIFunctionInfo"><span class="returnvalue">GIFunctionInfo</span></a> *
427 g_interface_info_find_method (<em class="parameter"><code><a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a> *info</code></em>,
428 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
429 <p>Obtain a method of the interface type given a <em class="parameter"><code>name</code></em>
430 . <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> will be
431 returned if there's no method available with that name.</p>
432 <div class="refsect3">
433 <a name="id-1.4.2.16.6.9.5"></a><h4>Parameters</h4>
434 <div class="informaltable"><table width="100%" border="0">
436 <col width="150px" class="parameters_name">
437 <col class="parameters_description">
438 <col width="200px" class="parameters_annotations">
442 <td class="parameter_name"><p>info</p></td>
443 <td class="parameter_description"><p>a <a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a></p></td>
444 <td class="parameter_annotations"> </td>
447 <td class="parameter_name"><p>name</p></td>
448 <td class="parameter_description"><p>name of method to obtain</p></td>
449 <td class="parameter_annotations"> </td>
454 <div class="refsect3">
455 <a name="id-1.4.2.16.6.9.6"></a><h4>Returns</h4>
456 <p> the <a class="link" href="gi-GIFunctionInfo.html#GIFunctionInfo" title="GIFunctionInfo"><span class="type">GIFunctionInfo</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if none found.
457 Free the struct by calling <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>
458 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
462 <div class="refsect2">
463 <a name="g-interface-info-get-n-signals"></a><h3>g_interface_info_get_n_signals ()</h3>
464 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
465 g_interface_info_get_n_signals (<em class="parameter"><code><a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a> *info</code></em>);</pre>
466 <p>Obtain the number of signals that this interface type has.</p>
467 <div class="refsect3">
468 <a name="id-1.4.2.16.6.10.5"></a><h4>Parameters</h4>
469 <div class="informaltable"><table width="100%" border="0">
471 <col width="150px" class="parameters_name">
472 <col class="parameters_description">
473 <col width="200px" class="parameters_annotations">
476 <td class="parameter_name"><p>info</p></td>
477 <td class="parameter_description"><p>a <a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a></p></td>
478 <td class="parameter_annotations"> </td>
482 <div class="refsect3">
483 <a name="id-1.4.2.16.6.10.6"></a><h4>Returns</h4>
484 <p> number of signals</p>
489 <div class="refsect2">
490 <a name="g-interface-info-get-signal"></a><h3>g_interface_info_get_signal ()</h3>
491 <pre class="programlisting"><a class="link" href="gi-GISignalInfo.html#GISignalInfo" title="GISignalInfo"><span class="returnvalue">GISignalInfo</span></a> *
492 g_interface_info_get_signal (<em class="parameter"><code><a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a> *info</code></em>,
493 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n</code></em>);</pre>
494 <p>Obtain an interface type signal at index <em class="parameter"><code>n</code></em>
496 <div class="refsect3">
497 <a name="id-1.4.2.16.6.11.5"></a><h4>Parameters</h4>
498 <div class="informaltable"><table width="100%" border="0">
500 <col width="150px" class="parameters_name">
501 <col class="parameters_description">
502 <col width="200px" class="parameters_annotations">
506 <td class="parameter_name"><p>info</p></td>
507 <td class="parameter_description"><p>a <a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a></p></td>
508 <td class="parameter_annotations"> </td>
511 <td class="parameter_name"><p>n</p></td>
512 <td class="parameter_description"><p>index of signal to get</p></td>
513 <td class="parameter_annotations"> </td>
518 <div class="refsect3">
519 <a name="id-1.4.2.16.6.11.6"></a><h4>Returns</h4>
520 <p> the <a class="link" href="gi-GISignalInfo.html#GISignalInfo" title="GISignalInfo"><span class="type">GISignalInfo</span></a>. Free the struct by calling
521 <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>
522 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
526 <div class="refsect2">
527 <a name="g-interface-info-find-signal"></a><h3>g_interface_info_find_signal ()</h3>
528 <pre class="programlisting"><a class="link" href="gi-GISignalInfo.html#GISignalInfo" title="GISignalInfo"><span class="returnvalue">GISignalInfo</span></a> *
529 g_interface_info_find_signal (<em class="parameter"><code><a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a> *info</code></em>,
530 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
532 <div class="refsect3">
533 <a name="id-1.4.2.16.6.12.5"></a><h4>Parameters</h4>
534 <div class="informaltable"><table width="100%" border="0">
536 <col width="150px" class="parameters_name">
537 <col class="parameters_description">
538 <col width="200px" class="parameters_annotations">
542 <td class="parameter_name"><p>info</p></td>
543 <td class="parameter_description"><p>a <a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a></p></td>
544 <td class="parameter_annotations"> </td>
547 <td class="parameter_name"><p>name</p></td>
548 <td class="parameter_description"><p>Name of signal</p></td>
549 <td class="parameter_annotations"> </td>
554 <div class="refsect3">
555 <a name="id-1.4.2.16.6.12.6"></a><h4>Returns</h4>
556 <p> Info for the signal with name <em class="parameter"><code>name</code></em>
557 in <em class="parameter"><code>info</code></em>
559 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on failure. </p>
560 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
562 <p class="since">Since 1.34</p>
565 <div class="refsect2">
566 <a name="g-interface-info-get-n-vfuncs"></a><h3>g_interface_info_get_n_vfuncs ()</h3>
567 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
568 g_interface_info_get_n_vfuncs (<em class="parameter"><code><a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a> *info</code></em>);</pre>
569 <p>Obtain the number of virtual functions that this interface type has.</p>
570 <div class="refsect3">
571 <a name="id-1.4.2.16.6.13.5"></a><h4>Parameters</h4>
572 <div class="informaltable"><table width="100%" border="0">
574 <col width="150px" class="parameters_name">
575 <col class="parameters_description">
576 <col width="200px" class="parameters_annotations">
579 <td class="parameter_name"><p>info</p></td>
580 <td class="parameter_description"><p>a <a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a></p></td>
581 <td class="parameter_annotations"> </td>
585 <div class="refsect3">
586 <a name="id-1.4.2.16.6.13.6"></a><h4>Returns</h4>
587 <p> number of virtual functions</p>
592 <div class="refsect2">
593 <a name="g-interface-info-get-vfunc"></a><h3>g_interface_info_get_vfunc ()</h3>
594 <pre class="programlisting"><a class="link" href="gi-GIVFuncInfo.html#GIVFuncInfo" title="GIVFuncInfo"><span class="returnvalue">GIVFuncInfo</span></a> *
595 g_interface_info_get_vfunc (<em class="parameter"><code><a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a> *info</code></em>,
596 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n</code></em>);</pre>
597 <p>Obtain an interface type virtual function at index <em class="parameter"><code>n</code></em>
599 <div class="refsect3">
600 <a name="id-1.4.2.16.6.14.5"></a><h4>Parameters</h4>
601 <div class="informaltable"><table width="100%" border="0">
603 <col width="150px" class="parameters_name">
604 <col class="parameters_description">
605 <col width="200px" class="parameters_annotations">
609 <td class="parameter_name"><p>info</p></td>
610 <td class="parameter_description"><p>a <a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a></p></td>
611 <td class="parameter_annotations"> </td>
614 <td class="parameter_name"><p>n</p></td>
615 <td class="parameter_description"><p>index of virtual function to get</p></td>
616 <td class="parameter_annotations"> </td>
621 <div class="refsect3">
622 <a name="id-1.4.2.16.6.14.6"></a><h4>Returns</h4>
623 <p> the <a class="link" href="gi-GIVFuncInfo.html#GIVFuncInfo" title="GIVFuncInfo"><span class="type">GIVFuncInfo</span></a>. Free the struct by calling
624 <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>
625 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
629 <div class="refsect2">
630 <a name="g-interface-info-find-vfunc"></a><h3>g_interface_info_find_vfunc ()</h3>
631 <pre class="programlisting"><a class="link" href="gi-GIVFuncInfo.html#GIVFuncInfo" title="GIVFuncInfo"><span class="returnvalue">GIVFuncInfo</span></a> *
632 g_interface_info_find_vfunc (<em class="parameter"><code><a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a> *info</code></em>,
633 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
634 <p>Locate a virtual function slot with name <em class="parameter"><code>name</code></em>
635 . See the documentation
636 for <a class="link" href="gi-GIObjectInfo.html#g-object-info-find-vfunc" title="g_object_info_find_vfunc ()"><code class="function">g_object_info_find_vfunc()</code></a> for more information on virtuals.</p>
637 <div class="refsect3">
638 <a name="id-1.4.2.16.6.15.5"></a><h4>Parameters</h4>
639 <div class="informaltable"><table width="100%" border="0">
641 <col width="150px" class="parameters_name">
642 <col class="parameters_description">
643 <col width="200px" class="parameters_annotations">
647 <td class="parameter_name"><p>info</p></td>
648 <td class="parameter_description"><p>a <a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a></p></td>
649 <td class="parameter_annotations"> </td>
652 <td class="parameter_name"><p>name</p></td>
653 <td class="parameter_description"><p>The name of a virtual function to find.</p></td>
654 <td class="parameter_annotations"> </td>
659 <div class="refsect3">
660 <a name="id-1.4.2.16.6.15.6"></a><h4>Returns</h4>
661 <p> the <a class="link" href="gi-GIVFuncInfo.html#GIVFuncInfo" title="GIVFuncInfo"><span class="type">GIVFuncInfo</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. Free it with
662 <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>
663 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
667 <div class="refsect2">
668 <a name="g-interface-info-get-n-constants"></a><h3>g_interface_info_get_n_constants ()</h3>
669 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
670 g_interface_info_get_n_constants (<em class="parameter"><code><a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a> *info</code></em>);</pre>
671 <p>Obtain the number of constants that this interface type has.</p>
672 <div class="refsect3">
673 <a name="id-1.4.2.16.6.16.5"></a><h4>Parameters</h4>
674 <div class="informaltable"><table width="100%" border="0">
676 <col width="150px" class="parameters_name">
677 <col class="parameters_description">
678 <col width="200px" class="parameters_annotations">
681 <td class="parameter_name"><p>info</p></td>
682 <td class="parameter_description"><p>a <a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a></p></td>
683 <td class="parameter_annotations"> </td>
687 <div class="refsect3">
688 <a name="id-1.4.2.16.6.16.6"></a><h4>Returns</h4>
689 <p> number of constants</p>
694 <div class="refsect2">
695 <a name="g-interface-info-get-constant"></a><h3>g_interface_info_get_constant ()</h3>
696 <pre class="programlisting"><a class="link" href="gi-GIConstantInfo.html#GIConstantInfo" title="GIConstantInfo"><span class="returnvalue">GIConstantInfo</span></a> *
697 g_interface_info_get_constant (<em class="parameter"><code><a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a> *info</code></em>,
698 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n</code></em>);</pre>
699 <p>Obtain an interface type constant at index <em class="parameter"><code>n</code></em>
701 <div class="refsect3">
702 <a name="id-1.4.2.16.6.17.5"></a><h4>Parameters</h4>
703 <div class="informaltable"><table width="100%" border="0">
705 <col width="150px" class="parameters_name">
706 <col class="parameters_description">
707 <col width="200px" class="parameters_annotations">
711 <td class="parameter_name"><p>info</p></td>
712 <td class="parameter_description"><p>a <a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a></p></td>
713 <td class="parameter_annotations"> </td>
716 <td class="parameter_name"><p>n</p></td>
717 <td class="parameter_description"><p>index of constant to get</p></td>
718 <td class="parameter_annotations"> </td>
723 <div class="refsect3">
724 <a name="id-1.4.2.16.6.17.6"></a><h4>Returns</h4>
725 <p> the <a class="link" href="gi-GIConstantInfo.html#GIConstantInfo" title="GIConstantInfo"><span class="type">GIConstantInfo</span></a>. Free the struct by calling
726 <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>
727 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
731 <div class="refsect2">
732 <a name="g-interface-info-get-iface-struct"></a><h3>g_interface_info_get_iface_struct ()</h3>
733 <pre class="programlisting"><a class="link" href="gi-GIStructInfo.html#GIStructInfo" title="GIStructInfo"><span class="returnvalue">GIStructInfo</span></a> *
734 g_interface_info_get_iface_struct (<em class="parameter"><code><a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a> *info</code></em>);</pre>
735 <p>Returns the layout C structure associated with this <span class="type">GInterface</span>.</p>
736 <div class="refsect3">
737 <a name="id-1.4.2.16.6.18.5"></a><h4>Parameters</h4>
738 <div class="informaltable"><table width="100%" border="0">
740 <col width="150px" class="parameters_name">
741 <col class="parameters_description">
742 <col width="200px" class="parameters_annotations">
745 <td class="parameter_name"><p>info</p></td>
746 <td class="parameter_description"><p>a <a class="link" href="gi-GIInterfaceInfo.html#GIInterfaceInfo" title="GIInterfaceInfo"><span class="type">GIInterfaceInfo</span></a></p></td>
747 <td class="parameter_annotations"> </td>
751 <div class="refsect3">
752 <a name="id-1.4.2.16.6.18.6"></a><h4>Returns</h4>
753 <p> the <a class="link" href="gi-GIStructInfo.html#GIStructInfo" title="GIStructInfo"><span class="type">GIStructInfo</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. Free it with
754 <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>
755 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
759 <div class="refsect1">
760 <a name="gi-GIInterfaceInfo.other_details"></a><h2>Types and Values</h2>
761 <div class="refsect2">
762 <a name="GIInterfaceInfo"></a><h3>GIInterfaceInfo</h3>
763 <pre class="programlisting">typedef GIBaseInfo GIInterfaceInfo;
765 <p>Represents an interface.</p>
771 Generated by GTK-Doc V1.21.1</div>