947094546c596c519b5a0feb67f41e810f4f0517
[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">
102   <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
103     <tbody>
104       <tr>
105         <td class="listing_lines" align="right"><pre>1
106 2
107 3
108 4</pre></td>
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>
113       </tr>
114     </tbody>
115   </table>
116 </div>
117
118 <p>
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.
121 </p>
122 </li>
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>.
128 </p></li>
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>.
133 </p></li>
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).
138 </p></li>
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>.
143 </p></li>
144 <li class="listitem"><p>
145    Things may repeat from the second step.
146 </p></li>
147 </ol></div>
148 <p>
149 </p>
150 <p>
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.
159 </p>
160 <p>
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.
164 </p>
165 </div>
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>
171 <p>
172 The <span class="structname">GTypePlugin</span> typedef is used as a placeholder 
173 for objects that implement the <span class="structname">GTypePlugin</span> 
174 interface.
175 </p>
176 </div>
177 <hr>
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;
185 };
186 </pre>
187 <p>
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.
190 </p>
191 <div class="variablelist"><table border="0">
192 <col align="left" valign="top">
193 <tbody>
194 <tr>
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>
197 </tr>
198 <tr>
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>
201 </tr>
202 <tr>
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
207 this function.</td>
208 </tr>
209 <tr>
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
214 this function.</td>
215 </tr>
216 </tbody>
217 </table></div>
218 </div>
219 <hr>
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>
223 <p>
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>.
226 </p>
227 <div class="variablelist"><table border="0">
228 <col align="left" valign="top">
229 <tbody><tr>
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>
232 </tr></tbody>
233 </table></div>
234 </div>
235 <hr>
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>
239 <p>
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>.
241 </p>
242 <div class="variablelist"><table border="0">
243 <col align="left" valign="top">
244 <tbody><tr>
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>
247 </tr></tbody>
248 </table></div>
249 </div>
250 <hr>
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>
257 <p>
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>.
259 </p>
260 <div class="variablelist"><table border="0">
261 <col align="left" valign="top">
262 <tbody>
263 <tr>
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>
266 </td>
267 </tr>
268 <tr>
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>
271 </tr>
272 <tr>
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>
275 </tr>
276 <tr>
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>
279 </tr>
280 </tbody>
281 </table></div>
282 </div>
283 <hr>
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>
290 <p>
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>.
292 </p>
293 <div class="variablelist"><table border="0">
294 <col align="left" valign="top">
295 <tbody>
296 <tr>
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>
299 </td>
300 </tr>
301 <tr>
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
304 is added</td>
305 </tr>
306 <tr>
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>
309 </tr>
310 <tr>
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>
313 </tr>
314 </tbody>
315 </table></div>
316 </div>
317 <hr>
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>
321 <p>
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.
325 </p>
326 <div class="variablelist"><table border="0">
327 <col align="left" valign="top">
328 <tbody><tr>
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>
331 </td>
332 </tr></tbody>
333 </table></div>
334 </div>
335 <hr>
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>
339 <p>
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.
343 </p>
344 <div class="variablelist"><table border="0">
345 <col align="left" valign="top">
346 <tbody><tr>
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>
349 </td>
350 </tr></tbody>
351 </table></div>
352 </div>
353 <hr>
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>
360 <p>
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 
363 type system itself.
364 </p>
365 <div class="variablelist"><table border="0">
366 <col align="left" valign="top">
367 <tbody>
368 <tr>
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>
371 </td>
372 </tr>
373 <tr>
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>
376 </tr>
377 <tr>
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>
380 </tr>
381 <tr>
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>
384 </tr>
385 </tbody>
386 </table></div>
387 </div>
388 <hr>
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>
396 <p>
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.
400 </p>
401 <div class="variablelist"><table border="0">
402 <col align="left" valign="top">
403 <tbody>
404 <tr>
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>
407 </td>
408 </tr>
409 <tr>
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
412 is added</td>
413 </tr>
414 <tr>
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>
417 </tr>
418 <tr>
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>
421 </tr>
422 </tbody>
423 </table></div>
424 </div>
425 </div>
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>.
429 </div>
430 </div>
431 <div class="footer">
432 <hr>
433           Generated by GTK-Doc V1.18</div>
434 </body>
435 </html>