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">
102 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
105 <td class="listing_lines" align="right"><pre>1
109 <td class="listing_code"><pre class="programlisting"><span class="normal">new_type_id </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gobject-Type-Information.html#g-type-register-dynamic">g_type_register_dynamic</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">parent_type_id</span><span class="symbol">,</span>
110 <span class="normal"> </span><span class="string">"TypeName"</span><span class="symbol">,</span>
111 <span class="normal"> new_type_plugin</span><span class="symbol">,</span>
112 <span class="normal"> type_flags</span><span class="symbol">);</span></pre></td>
119 where <code class="literal">new_type_plugin</code> is an implementation of the
120 <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> interface.
123 <li class="listitem"><p>
124 The type's implementation is referenced, e.g. through
125 <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
126 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
127 a type derived from <code class="literal">new_type_id</code>.
129 <li class="listitem"><p>
130 This causes the type system to load the type's implementation by calling
131 <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
132 <code class="literal">new_type_plugin</code>.
134 <li class="listitem"><p>
135 At some point the type's implementation isn't required anymore, e.g. after
136 <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
137 count of an instance drops to zero).
139 <li class="listitem"><p>
140 This causes the type system to throw away the information retrieved from
141 <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
142 <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>.
144 <li class="listitem"><p>
145 Things may repeat from the second step.
151 So basically, you need to implement a <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> type that
152 carries a use_count, once use_count goes from zero to one, you need
153 to load the implementation to successfully handle the upcoming
154 <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
155 succeeding use/unuse calls, once use_count drops to zero, you can
156 unload the implementation again. The type system makes sure to call
157 <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
158 when the type is needed again.
161 <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
162 implements most of this except for the actual module loading and
163 unloading. It even handles multiple registered types per module.
166 <div class="refsect1">
167 <a name="GTypePlugin.details"></a><h2>Details</h2>
168 <div class="refsect2">
169 <a name="GTypePlugin-struct"></a><h3>GTypePlugin</h3>
170 <pre class="programlisting">typedef struct _GTypePlugin GTypePlugin;</pre>
172 The <span class="structname">GTypePlugin</span> typedef is used as a placeholder
173 for objects that implement the <span class="structname">GTypePlugin</span>
178 <div class="refsect2">
179 <a name="GTypePluginClass"></a><h3>struct GTypePluginClass</h3>
180 <pre class="programlisting">struct GTypePluginClass {
181 GTypePluginUse use_plugin;
182 GTypePluginUnuse unuse_plugin;
183 GTypePluginCompleteTypeInfo complete_type_info;
184 GTypePluginCompleteInterfaceInfo complete_interface_info;
188 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
189 the lifecycle of dynamically loaded types.
191 <div class="variablelist"><table border="0">
192 <col align="left" valign="top">
195 <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>
196 <td>Increases the use count of the plugin.</td>
199 <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>
200 <td>Decreases the use count of the plugin.</td>
203 <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>
204 <td>Fills in the <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> and
205 <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
206 with <code class="literal">memset(s, 0, sizeof (s))</code> before calling
210 <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>
211 <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>
212 for the interface. The structs is initialized with
213 <code class="literal">memset(s, 0, sizeof (s))</code> before calling
220 <div class="refsect2">
221 <a name="GTypePluginUse"></a><h3>GTypePluginUse ()</h3>
222 <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>
224 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
225 to increase the use count of <em class="parameter"><code>plugin</code></em>.
227 <div class="variablelist"><table border="0">
228 <col align="left" valign="top">
230 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
231 <td>the <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> whose use count should be increased</td>
236 <div class="refsect2">
237 <a name="GTypePluginUnuse"></a><h3>GTypePluginUnuse ()</h3>
238 <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>
240 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>.
242 <div class="variablelist"><table border="0">
243 <col align="left" valign="top">
245 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
246 <td>the <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> whose use count should be decreased</td>
251 <div class="refsect2">
252 <a name="GTypePluginCompleteTypeInfo"></a><h3>GTypePluginCompleteTypeInfo ()</h3>
253 <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>,
254 <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>,
255 <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>,
256 <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>
258 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>.
260 <div class="variablelist"><table border="0">
261 <col align="left" valign="top">
264 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
265 <td>the <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
269 <td><p><span class="term"><em class="parameter"><code>g_type</code></em> :</span></p></td>
270 <td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> whose info is completed</td>
273 <td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
274 <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>
277 <td><p><span class="term"><em class="parameter"><code>value_table</code></em> :</span></p></td>
278 <td>the <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="type">GTypeValueTable</span></a> to fill in</td>
284 <div class="refsect2">
285 <a name="GTypePluginCompleteInterfaceInfo"></a><h3>GTypePluginCompleteInterfaceInfo ()</h3>
286 <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>,
287 <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>,
288 <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>,
289 <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>
291 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>.
293 <div class="variablelist"><table border="0">
294 <col align="left" valign="top">
297 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
298 <td>the <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
302 <td><p><span class="term"><em class="parameter"><code>instance_type</code></em> :</span></p></td>
303 <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
307 <td><p><span class="term"><em class="parameter"><code>interface_type</code></em> :</span></p></td>
308 <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>
311 <td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
312 <td>the <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="struct GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> to fill in</td>
318 <div class="refsect2">
319 <a name="g-type-plugin-use"></a><h3>g_type_plugin_use ()</h3>
320 <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>
322 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
323 <em class="parameter"><code>plugin</code></em>. There should be no need to use this function outside of
324 the GObject type system itself.
326 <div class="variablelist"><table border="0">
327 <col align="left" valign="top">
329 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
330 <td>a <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
336 <div class="refsect2">
337 <a name="g-type-plugin-unuse"></a><h3>g_type_plugin_unuse ()</h3>
338 <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>
340 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
341 <em class="parameter"><code>plugin</code></em>. There should be no need to use this function outside of
342 the GObject type system itself.
344 <div class="variablelist"><table border="0">
345 <col align="left" valign="top">
347 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
348 <td>a <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
354 <div class="refsect2">
355 <a name="g-type-plugin-complete-type-info"></a><h3>g_type_plugin_complete_type_info ()</h3>
356 <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>,
357 <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>,
358 <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>,
359 <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>
361 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>.
362 There should be no need to use this function outside of the GObject
365 <div class="variablelist"><table border="0">
366 <col align="left" valign="top">
369 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
370 <td>a <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
374 <td><p><span class="term"><em class="parameter"><code>g_type</code></em> :</span></p></td>
375 <td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> whose info is completed</td>
378 <td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
379 <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>
382 <td><p><span class="term"><em class="parameter"><code>value_table</code></em> :</span></p></td>
383 <td>the <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="type">GTypeValueTable</span></a> to fill in</td>
389 <div class="refsect2">
390 <a name="g-type-plugin-complete-interface-info"></a><h3>g_type_plugin_complete_interface_info ()</h3>
391 <pre class="programlisting"><span class="returnvalue">void</span> g_type_plugin_complete_interface_info
392 (<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>,
393 <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>,
394 <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>,
395 <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>
397 Calls the <em class="parameter"><code>complete_interface_info</code></em> function from the
398 <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
399 function outside of the GObject type system itself.
401 <div class="variablelist"><table border="0">
402 <col align="left" valign="top">
405 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
406 <td>the <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
410 <td><p><span class="term"><em class="parameter"><code>instance_type</code></em> :</span></p></td>
411 <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
415 <td><p><span class="term"><em class="parameter"><code>interface_type</code></em> :</span></p></td>
416 <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>
419 <td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
420 <td>the <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="struct GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> to fill in</td>
426 <div class="refsect1">
427 <a name="GTypePlugin.see-also"></a><h2>See Also</h2>
428 <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>.
433 Generated by GTK-Doc V1.18</div>