Update to version 2.33.1
[profile/ivi/glib2.git] / docs / reference / gobject / html / GTypePlugin.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>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">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16 <tr valign="middle">
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>
22 </tr>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#GTypePlugin.synopsis" class="shortcut">Top</a>
25                    | 
26                   <a href="#GTypePlugin.description" class="shortcut">Description</a>
27                    | 
28                   <a href="#GTypePlugin.object-hierarchy" class="shortcut">Object Hierarchy</a>
29                    | 
30                   <a href="#GTypePlugin.implementations" class="shortcut">Known Implementations</a>
31 </td></tr>
32 </table>
33 <div class="refentry">
34 <a name="GTypePlugin"></a><div class="titlepage"></div>
35 <div class="refnamediv"><table width="100%"><tr>
36 <td valign="top">
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>
39 </td>
40 <td valign="top" align="right"></td>
41 </tr></table></div>
42 <div class="refsynopsisdiv">
43 <a name="GTypePlugin.synopsis"></a><h2>Synopsis</h2>
44 <pre class="synopsis">
45 #include &lt;glib-object.h&gt;
46
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>);
70 </pre>
71 </div>
72 <div class="refsect1">
73 <a name="GTypePlugin.object-hierarchy"></a><h2>Object Hierarchy</h2>
74 <pre class="synopsis">
75   GInterface
76    +----GTypePlugin
77 </pre>
78 </div>
79 <div class="refsect1">
80 <a name="GTypePlugin.implementations"></a><h2>Known Implementations</h2>
81 <p>
82 GTypePlugin is implemented by
83  <a class="link" href="GTypeModule.html" title="GTypeModule">GTypeModule</a>.</p>
84 </div>
85 <div class="refsect1">
86 <a name="GTypePlugin.description"></a><h2>Description</h2>
87 <p>
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:
91 </p>
92 <p>
93 </p>
94 <div class="orderedlist"><ol class="orderedlist" type="1">
95 <li class="listitem">
96 <p>
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:
100   </p>
101 <div class="informalexample"><pre class="programlisting">
102   new_type_id = g_type_register_dynamic (parent_type_id,
103                                                 "TypeName",
104                                                 new_type_plugin,
105                                                 type_flags);
106   </pre></div>
107 <p>
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.
110 </p>
111 </li>
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>.
117 </p></li>
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>.
122 </p></li>
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).
127 </p></li>
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>.
132 </p></li>
133 <li class="listitem"><p>
134    Things may repeat from the second step.
135 </p></li>
136 </ol></div>
137 <p>
138 </p>
139 <p>
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.
148 </p>
149 <p>
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.
153 </p>
154 </div>
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>
160 <p>
161 The <span class="structname">GTypePlugin</span> typedef is used as a placeholder 
162 for objects that implement the <span class="structname">GTypePlugin</span> 
163 interface.
164 </p>
165 </div>
166 <hr>
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;
174 };
175 </pre>
176 <p>
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.
179 </p>
180 <div class="variablelist"><table border="0">
181 <col align="left" valign="top">
182 <tbody>
183 <tr>
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>
186 </tr>
187 <tr>
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>
190 </tr>
191 <tr>
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
196 this function.</td>
197 </tr>
198 <tr>
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
203 this function.</td>
204 </tr>
205 </tbody>
206 </table></div>
207 </div>
208 <hr>
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>
212 <p>
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>.
215 </p>
216 <div class="variablelist"><table border="0">
217 <col align="left" valign="top">
218 <tbody><tr>
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>
221 </tr></tbody>
222 </table></div>
223 </div>
224 <hr>
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>
228 <p>
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>.
230 </p>
231 <div class="variablelist"><table border="0">
232 <col align="left" valign="top">
233 <tbody><tr>
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>
236 </tr></tbody>
237 </table></div>
238 </div>
239 <hr>
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>
246 <p>
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>.
248 </p>
249 <div class="variablelist"><table border="0">
250 <col align="left" valign="top">
251 <tbody>
252 <tr>
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>
255 </td>
256 </tr>
257 <tr>
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>
260 </tr>
261 <tr>
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>
264 </tr>
265 <tr>
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>
268 </tr>
269 </tbody>
270 </table></div>
271 </div>
272 <hr>
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>
279 <p>
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>.
281 </p>
282 <div class="variablelist"><table border="0">
283 <col align="left" valign="top">
284 <tbody>
285 <tr>
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>
288 </td>
289 </tr>
290 <tr>
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
293 is added</td>
294 </tr>
295 <tr>
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>
298 </tr>
299 <tr>
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>
302 </tr>
303 </tbody>
304 </table></div>
305 </div>
306 <hr>
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>
310 <p>
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.
314 </p>
315 <div class="variablelist"><table border="0">
316 <col align="left" valign="top">
317 <tbody><tr>
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>
320 </td>
321 </tr></tbody>
322 </table></div>
323 </div>
324 <hr>
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>
328 <p>
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.
332 </p>
333 <div class="variablelist"><table border="0">
334 <col align="left" valign="top">
335 <tbody><tr>
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>
338 </td>
339 </tr></tbody>
340 </table></div>
341 </div>
342 <hr>
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>
349 <p>
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 
352 type system itself.
353 </p>
354 <div class="variablelist"><table border="0">
355 <col align="left" valign="top">
356 <tbody>
357 <tr>
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>
360 </td>
361 </tr>
362 <tr>
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>
365 </tr>
366 <tr>
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>
369 </tr>
370 <tr>
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>
373 </tr>
374 </tbody>
375 </table></div>
376 </div>
377 <hr>
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>
385 <p>
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.
389 </p>
390 <div class="variablelist"><table border="0">
391 <col align="left" valign="top">
392 <tbody>
393 <tr>
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>
396 </td>
397 </tr>
398 <tr>
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
401 is added</td>
402 </tr>
403 <tr>
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>
406 </tr>
407 <tr>
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>
410 </tr>
411 </tbody>
412 </table></div>
413 </div>
414 </div>
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>.
418 </div>
419 </div>
420 <div class="footer">
421 <hr>
422           Generated by GTK-Doc V1.18</div>
423 </body>
424 </html>