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>GTypePlugin</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="GObject Reference Manual">
8 <link rel="up" href="rn01.html" title="API Reference">
9 <link rel="prev" href="gobject-Type-Information.html" title="Type Information">
10 <link rel="next" href="GTypeModule.html" title="GTypeModule">
11 <meta name="generator" content="GTK-Doc V1.18 (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="2">
17 <td><a accesskey="p" href="gobject-Type-Information.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="rn01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GObject Reference Manual</th>
21 <td><a accesskey="n" href="GTypeModule.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#GTypePlugin.synopsis" class="shortcut">Top</a>
26 <a href="#GTypePlugin.description" class="shortcut">Description</a>
28 <a href="#GTypePlugin.object-hierarchy" class="shortcut">Object Hierarchy</a>
30 <a href="#GTypePlugin.implementations" class="shortcut">Known Implementations</a>
33 <div class="refentry">
34 <a name="GTypePlugin"></a><div class="titlepage"></div>
35 <div class="refnamediv"><table width="100%"><tr>
37 <h2><span class="refentrytitle"><a name="GTypePlugin.top_of_page"></a>GTypePlugin</span></h2>
38 <p>GTypePlugin — An interface for dynamically loadable types</p>
40 <td valign="top" align="right"></td>
42 <div class="refsynopsisdiv">
43 <a name="GTypePlugin.synopsis"></a><h2>Synopsis</h2>
44 <pre class="synopsis">
45 #include <glib-object.h>
47 <a class="link" href="GTypePlugin.html#GTypePlugin-struct" title="GTypePlugin">GTypePlugin</a>;
48 struct <a class="link" href="GTypePlugin.html#GTypePluginClass" title="struct GTypePluginClass">GTypePluginClass</a>;
49 <span class="returnvalue">void</span> (<a class="link" href="GTypePlugin.html#GTypePluginUse" title="GTypePluginUse ()">*GTypePluginUse</a>) (<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>);
50 <span class="returnvalue">void</span> (<a class="link" href="GTypePlugin.html#GTypePluginUnuse" title="GTypePluginUnuse ()">*GTypePluginUnuse</a>) (<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>);
51 <span class="returnvalue">void</span> (<a class="link" href="GTypePlugin.html#GTypePluginCompleteTypeInfo" title="GTypePluginCompleteTypeInfo ()">*GTypePluginCompleteTypeInfo</a>) (<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>,
52 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> g_type</code></em>,
53 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> *info</code></em>,
54 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="type">GTypeValueTable</span></a> *value_table</code></em>);
55 <span class="returnvalue">void</span> (<a class="link" href="GTypePlugin.html#GTypePluginCompleteInterfaceInfo" title="GTypePluginCompleteInterfaceInfo ()">*GTypePluginCompleteInterfaceInfo</a>) (<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>,
56 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> instance_type</code></em>,
57 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> interface_type</code></em>,
58 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="struct GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> *info</code></em>);
59 <span class="returnvalue">void</span> <a class="link" href="GTypePlugin.html#g-type-plugin-use" title="g_type_plugin_use ()">g_type_plugin_use</a> (<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>);
60 <span class="returnvalue">void</span> <a class="link" href="GTypePlugin.html#g-type-plugin-unuse" title="g_type_plugin_unuse ()">g_type_plugin_unuse</a> (<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>);
61 <span class="returnvalue">void</span> <a class="link" href="GTypePlugin.html#g-type-plugin-complete-type-info" title="g_type_plugin_complete_type_info ()">g_type_plugin_complete_type_info</a> (<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>,
62 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> g_type</code></em>,
63 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> *info</code></em>,
64 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="type">GTypeValueTable</span></a> *value_table</code></em>);
65 <span class="returnvalue">void</span> <a class="link" href="GTypePlugin.html#g-type-plugin-complete-interface-info" title="g_type_plugin_complete_interface_info ()">g_type_plugin_complete_interface_info</a>
66 (<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>,
67 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> instance_type</code></em>,
68 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> interface_type</code></em>,
69 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="struct GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> *info</code></em>);
72 <div class="refsect1">
73 <a name="GTypePlugin.object-hierarchy"></a><h2>Object Hierarchy</h2>
74 <pre class="synopsis">
79 <div class="refsect1">
80 <a name="GTypePlugin.implementations"></a><h2>Known Implementations</h2>
82 GTypePlugin is implemented by
83 <a class="link" href="GTypeModule.html" title="GTypeModule">GTypeModule</a>.</p>
85 <div class="refsect1">
86 <a name="GTypePlugin.description"></a><h2>Description</h2>
88 The GObject type system supports dynamic loading of types. The
89 <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> interface is used to handle the lifecycle of
90 dynamically loaded types. It goes as follows:
94 <div class="orderedlist"><ol class="orderedlist" type="1">
97 The type is initially introduced (usually upon loading the module
98 the first time, or by your main application that knows what modules
99 introduces what types), like this:
101 <div class="informalexample"><pre class="programlisting">
102 new_type_id = g_type_register_dynamic (parent_type_id,
108 where <code class="literal">new_type_plugin</code> is an implementation of the
109 <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> interface.
112 <li class="listitem"><p>
113 The type's implementation is referenced, e.g. through
114 <a class="link" href="gobject-Type-Information.html#g-type-class-ref" title="g_type_class_ref ()"><code class="function">g_type_class_ref()</code></a> or through <a class="link" href="gobject-Type-Information.html#g-type-create-instance" title="g_type_create_instance ()"><code class="function">g_type_create_instance()</code></a> (this is
115 being called by <a class="link" href="gobject-The-Base-Object-Type.html#g-object-new" title="g_object_new ()"><code class="function">g_object_new()</code></a>) or through one of the above done on
116 a type derived from <code class="literal">new_type_id</code>.
118 <li class="listitem"><p>
119 This causes the type system to load the type's implementation by calling
120 <a class="link" href="GTypePlugin.html#g-type-plugin-use" title="g_type_plugin_use ()"><code class="function">g_type_plugin_use()</code></a> and <a class="link" href="GTypePlugin.html#g-type-plugin-complete-type-info" title="g_type_plugin_complete_type_info ()"><code class="function">g_type_plugin_complete_type_info()</code></a> on
121 <code class="literal">new_type_plugin</code>.
123 <li class="listitem"><p>
124 At some point the type's implementation isn't required anymore, e.g. after
125 <a class="link" href="gobject-Type-Information.html#g-type-class-unref" title="g_type_class_unref ()"><code class="function">g_type_class_unref()</code></a> or <a class="link" href="gobject-Type-Information.html#g-type-free-instance" title="g_type_free_instance ()"><code class="function">g_type_free_instance()</code></a> (called when the reference
126 count of an instance drops to zero).
128 <li class="listitem"><p>
129 This causes the type system to throw away the information retrieved from
130 <a class="link" href="GTypePlugin.html#g-type-plugin-complete-type-info" title="g_type_plugin_complete_type_info ()"><code class="function">g_type_plugin_complete_type_info()</code></a> and then it calls
131 <a class="link" href="GTypePlugin.html#g-type-plugin-unuse" title="g_type_plugin_unuse ()"><code class="function">g_type_plugin_unuse()</code></a> on <code class="literal">new_type_plugin</code>.
133 <li class="listitem"><p>
134 Things may repeat from the second step.
140 So basically, you need to implement a <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> type that
141 carries a use_count, once use_count goes from zero to one, you need
142 to load the implementation to successfully handle the upcoming
143 <a class="link" href="GTypePlugin.html#g-type-plugin-complete-type-info" title="g_type_plugin_complete_type_info ()"><code class="function">g_type_plugin_complete_type_info()</code></a> call. Later, maybe after
144 succeeding use/unuse calls, once use_count drops to zero, you can
145 unload the implementation again. The type system makes sure to call
146 <a class="link" href="GTypePlugin.html#g-type-plugin-use" title="g_type_plugin_use ()"><code class="function">g_type_plugin_use()</code></a> and <a class="link" href="GTypePlugin.html#g-type-plugin-complete-type-info" title="g_type_plugin_complete_type_info ()"><code class="function">g_type_plugin_complete_type_info()</code></a> again
147 when the type is needed again.
150 <a class="link" href="GTypeModule.html" title="GTypeModule"><span class="type">GTypeModule</span></a> is an implementation of <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> that already
151 implements most of this except for the actual module loading and
152 unloading. It even handles multiple registered types per module.
155 <div class="refsect1">
156 <a name="GTypePlugin.details"></a><h2>Details</h2>
157 <div class="refsect2">
158 <a name="GTypePlugin-struct"></a><h3>GTypePlugin</h3>
159 <pre class="programlisting">typedef struct _GTypePlugin GTypePlugin;</pre>
161 The <span class="structname">GTypePlugin</span> typedef is used as a placeholder
162 for objects that implement the <span class="structname">GTypePlugin</span>
167 <div class="refsect2">
168 <a name="GTypePluginClass"></a><h3>struct GTypePluginClass</h3>
169 <pre class="programlisting">struct GTypePluginClass {
170 GTypePluginUse use_plugin;
171 GTypePluginUnuse unuse_plugin;
172 GTypePluginCompleteTypeInfo complete_type_info;
173 GTypePluginCompleteInterfaceInfo complete_interface_info;
177 The <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> interface is used by the type system in order to handle
178 the lifecycle of dynamically loaded types.
180 <div class="variablelist"><table border="0">
181 <col align="left" valign="top">
184 <td><p><span class="term"><a class="link" href="GTypePlugin.html#GTypePluginUse" title="GTypePluginUse ()"><span class="type">GTypePluginUse</span></a> <em class="structfield"><code><a name="GTypePluginClass.use-plugin"></a>use_plugin</code></em>;</span></p></td>
185 <td>Increases the use count of the plugin.</td>
188 <td><p><span class="term"><a class="link" href="GTypePlugin.html#GTypePluginUnuse" title="GTypePluginUnuse ()"><span class="type">GTypePluginUnuse</span></a> <em class="structfield"><code><a name="GTypePluginClass.unuse-plugin"></a>unuse_plugin</code></em>;</span></p></td>
189 <td>Decreases the use count of the plugin.</td>
192 <td><p><span class="term"><a class="link" href="GTypePlugin.html#GTypePluginCompleteTypeInfo" title="GTypePluginCompleteTypeInfo ()"><span class="type">GTypePluginCompleteTypeInfo</span></a> <em class="structfield"><code><a name="GTypePluginClass.complete-type-info"></a>complete_type_info</code></em>;</span></p></td>
193 <td>Fills in the <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> and
194 <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="type">GTypeValueTable</span></a> structs for the type. The structs are initialized
195 with <code class="literal">memset(s, 0, sizeof (s))</code> before calling
199 <td><p><span class="term"><a class="link" href="GTypePlugin.html#GTypePluginCompleteInterfaceInfo" title="GTypePluginCompleteInterfaceInfo ()"><span class="type">GTypePluginCompleteInterfaceInfo</span></a> <em class="structfield"><code><a name="GTypePluginClass.complete-interface-info"></a>complete_interface_info</code></em>;</span></p></td>
200 <td>Fills in missing parts of the <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="struct GInterfaceInfo"><span class="type">GInterfaceInfo</span></a>
201 for the interface. The structs is initialized with
202 <code class="literal">memset(s, 0, sizeof (s))</code> before calling
209 <div class="refsect2">
210 <a name="GTypePluginUse"></a><h3>GTypePluginUse ()</h3>
211 <pre class="programlisting"><span class="returnvalue">void</span> (*GTypePluginUse) (<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>);</pre>
213 The type of the <em class="parameter"><code>use_plugin</code></em> function of <a class="link" href="GTypePlugin.html#GTypePluginClass" title="struct GTypePluginClass"><span class="type">GTypePluginClass</span></a>, which gets called
214 to increase the use count of <em class="parameter"><code>plugin</code></em>.
216 <div class="variablelist"><table border="0">
217 <col align="left" valign="top">
219 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
220 <td>the <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> whose use count should be increased</td>
225 <div class="refsect2">
226 <a name="GTypePluginUnuse"></a><h3>GTypePluginUnuse ()</h3>
227 <pre class="programlisting"><span class="returnvalue">void</span> (*GTypePluginUnuse) (<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>);</pre>
229 The type of the <em class="parameter"><code>unuse_plugin</code></em> function of <a class="link" href="GTypePlugin.html#GTypePluginClass" title="struct GTypePluginClass"><span class="type">GTypePluginClass</span></a>.
231 <div class="variablelist"><table border="0">
232 <col align="left" valign="top">
234 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
235 <td>the <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> whose use count should be decreased</td>
240 <div class="refsect2">
241 <a name="GTypePluginCompleteTypeInfo"></a><h3>GTypePluginCompleteTypeInfo ()</h3>
242 <pre class="programlisting"><span class="returnvalue">void</span> (*GTypePluginCompleteTypeInfo) (<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>,
243 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> g_type</code></em>,
244 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> *info</code></em>,
245 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="type">GTypeValueTable</span></a> *value_table</code></em>);</pre>
247 The type of the <em class="parameter"><code>complete_type_info</code></em> function of <a class="link" href="GTypePlugin.html#GTypePluginClass" title="struct GTypePluginClass"><span class="type">GTypePluginClass</span></a>.
249 <div class="variablelist"><table border="0">
250 <col align="left" valign="top">
253 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
254 <td>the <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
258 <td><p><span class="term"><em class="parameter"><code>g_type</code></em> :</span></p></td>
259 <td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> whose info is completed</td>
262 <td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
263 <td>the <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> struct to fill in</td>
266 <td><p><span class="term"><em class="parameter"><code>value_table</code></em> :</span></p></td>
267 <td>the <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="type">GTypeValueTable</span></a> to fill in</td>
273 <div class="refsect2">
274 <a name="GTypePluginCompleteInterfaceInfo"></a><h3>GTypePluginCompleteInterfaceInfo ()</h3>
275 <pre class="programlisting"><span class="returnvalue">void</span> (*GTypePluginCompleteInterfaceInfo) (<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>,
276 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> instance_type</code></em>,
277 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> interface_type</code></em>,
278 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="struct GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> *info</code></em>);</pre>
280 The type of the <em class="parameter"><code>complete_interface_info</code></em> function of <a class="link" href="GTypePlugin.html#GTypePluginClass" title="struct GTypePluginClass"><span class="type">GTypePluginClass</span></a>.
282 <div class="variablelist"><table border="0">
283 <col align="left" valign="top">
286 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
287 <td>the <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
291 <td><p><span class="term"><em class="parameter"><code>instance_type</code></em> :</span></p></td>
292 <td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of an instantiable type to which the interface
296 <td><p><span class="term"><em class="parameter"><code>interface_type</code></em> :</span></p></td>
297 <td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the interface whose info is completed</td>
300 <td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
301 <td>the <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="struct GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> to fill in</td>
307 <div class="refsect2">
308 <a name="g-type-plugin-use"></a><h3>g_type_plugin_use ()</h3>
309 <pre class="programlisting"><span class="returnvalue">void</span> g_type_plugin_use (<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>);</pre>
311 Calls the <em class="parameter"><code>use_plugin</code></em> function from the <a class="link" href="GTypePlugin.html#GTypePluginClass" title="struct GTypePluginClass"><span class="type">GTypePluginClass</span></a> of
312 <em class="parameter"><code>plugin</code></em>. There should be no need to use this function outside of
313 the GObject type system itself.
315 <div class="variablelist"><table border="0">
316 <col align="left" valign="top">
318 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
319 <td>a <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
325 <div class="refsect2">
326 <a name="g-type-plugin-unuse"></a><h3>g_type_plugin_unuse ()</h3>
327 <pre class="programlisting"><span class="returnvalue">void</span> g_type_plugin_unuse (<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>);</pre>
329 Calls the <em class="parameter"><code>unuse_plugin</code></em> function from the <a class="link" href="GTypePlugin.html#GTypePluginClass" title="struct GTypePluginClass"><span class="type">GTypePluginClass</span></a> of
330 <em class="parameter"><code>plugin</code></em>. There should be no need to use this function outside of
331 the GObject type system itself.
333 <div class="variablelist"><table border="0">
334 <col align="left" valign="top">
336 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
337 <td>a <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
343 <div class="refsect2">
344 <a name="g-type-plugin-complete-type-info"></a><h3>g_type_plugin_complete_type_info ()</h3>
345 <pre class="programlisting"><span class="returnvalue">void</span> g_type_plugin_complete_type_info (<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>,
346 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> g_type</code></em>,
347 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> *info</code></em>,
348 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="type">GTypeValueTable</span></a> *value_table</code></em>);</pre>
350 Calls the <em class="parameter"><code>complete_type_info</code></em> function from the <a class="link" href="GTypePlugin.html#GTypePluginClass" title="struct GTypePluginClass"><span class="type">GTypePluginClass</span></a> of <em class="parameter"><code>plugin</code></em>.
351 There should be no need to use this function outside of the GObject
354 <div class="variablelist"><table border="0">
355 <col align="left" valign="top">
358 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
359 <td>a <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
363 <td><p><span class="term"><em class="parameter"><code>g_type</code></em> :</span></p></td>
364 <td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> whose info is completed</td>
367 <td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
368 <td>the <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> struct to fill in</td>
371 <td><p><span class="term"><em class="parameter"><code>value_table</code></em> :</span></p></td>
372 <td>the <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="type">GTypeValueTable</span></a> to fill in</td>
378 <div class="refsect2">
379 <a name="g-type-plugin-complete-interface-info"></a><h3>g_type_plugin_complete_interface_info ()</h3>
380 <pre class="programlisting"><span class="returnvalue">void</span> g_type_plugin_complete_interface_info
381 (<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>,
382 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> instance_type</code></em>,
383 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> interface_type</code></em>,
384 <em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="struct GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> *info</code></em>);</pre>
386 Calls the <em class="parameter"><code>complete_interface_info</code></em> function from the
387 <a class="link" href="GTypePlugin.html#GTypePluginClass" title="struct GTypePluginClass"><span class="type">GTypePluginClass</span></a> of <em class="parameter"><code>plugin</code></em>. There should be no need to use this
388 function outside of the GObject type system itself.
390 <div class="variablelist"><table border="0">
391 <col align="left" valign="top">
394 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
395 <td>the <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
399 <td><p><span class="term"><em class="parameter"><code>instance_type</code></em> :</span></p></td>
400 <td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of an instantiable type to which the interface
404 <td><p><span class="term"><em class="parameter"><code>interface_type</code></em> :</span></p></td>
405 <td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the interface whose info is completed</td>
408 <td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
409 <td>the <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="struct GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> to fill in</td>
415 <div class="refsect1">
416 <a name="GTypePlugin.see-also"></a><h2>See Also</h2>
417 <a class="link" href="GTypeModule.html" title="GTypeModule"><span class="type">GTypeModule</span></a> and <a class="link" href="gobject-Type-Information.html#g-type-register-dynamic" title="g_type_register_dynamic ()"><code class="function">g_type_register_dynamic()</code></a>.
422 Generated by GTK-Doc V1.18</div>