File: //usr/local/ssl/share/gtk-doc/html/gobject/GTypePlugin.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GTypePlugin</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="GObject Reference Manual">
<link rel="up" href="rn01.html" title="API Reference">
<link rel="prev" href="gobject-Type-Information.html" title="GType">
<link rel="next" href="GTypeModule.html" title="GTypeModule">
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="preface" href="pr01.html" title="Introduction">
<link rel="part" href="pt01.html" title="Part I. Concepts">
<link rel="chapter" href="ch01.html" title="Background">
<link rel="chapter" href="ch02.html" title="The Glib Dynamic Type System">
<link rel="chapter" href="chapter-gobject.html" title="The GObject base class">
<link rel="chapter" href="chapter-signal.html" title="The GObject messaging system">
<link rel="reference" href="rn01.html" title="API Reference">
<link rel="reference" href="rn02.html" title="Tools Reference">
<link rel="part" href="pt02.html" title="Part IV. Tutorial">
<link rel="chapter" href="howto-gobject.html" title="How To define and implement a new GObject?">
<link rel="chapter" href="howto-interface.html" title="How To define and implement Interfaces?">
<link rel="chapter" href="howto-signals.html" title="Howto create and use signals">
<link rel="part" href="pt03.html" title="Part V. Related Tools">
<link rel="chapter" href="tools-gob.html" title="GObject builder">
<link rel="chapter" href="tools-ginspector.html" title="Graphical inspection of Gobjects">
<link rel="chapter" href="tools-refdb.html" title="Debugging reference count problems">
<link rel="chapter" href="tools-gtkdoc.html" title="Writing API docs">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
<link rel="index" href="ix08.html" title="Index of new symbols in 2.12">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gobject-Type-Information.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GObject Reference Manual</th>
<td><a accesskey="n" href="GTypeModule.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2655212" class="shortcut">Top</a>
 | 
<a href="#id2655565" class="shortcut">Description</a>
 | 
<a href="#id2655516" class="shortcut">Object Hierarchy</a>
 | 
<a href="#id2655541" class="shortcut">Known Implementations</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GTypePlugin"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2655212"></a><span class="refentrytitle">GTypePlugin</span>
</h2>
<p>GTypePlugin — An interface for dynamically loadable types</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">
#include <glib-object.h>
<a href="GTypePlugin.html#GTypePlugin-struct">GTypePlugin</a>;
<a href="GTypePlugin.html#GTypePluginClass">GTypePluginClass</a>;
void (<a href="GTypePlugin.html#GTypePluginUse">*GTypePluginUse</a>) (<a href="GTypePlugin.html" title="GTypePlugin">GTypePlugin</a> *plugin);
void (<a href="GTypePlugin.html#GTypePluginUnuse">*GTypePluginUnuse</a>) (<a href="GTypePlugin.html" title="GTypePlugin">GTypePlugin</a> *plugin);
void (<a href="GTypePlugin.html#GTypePluginCompleteTypeInfo">*GTypePluginCompleteTypeInfo</a>) (<a href="GTypePlugin.html" title="GTypePlugin">GTypePlugin</a> *plugin,
<a href="gobject-Type-Information.html#GType">GType</a> g_type,
<a href="gobject-Type-Information.html#GTypeInfo">GTypeInfo</a> *info,
<a href="gobject-Type-Information.html#GTypeValueTable">GTypeValueTable</a> *value_table);
void (<a href="GTypePlugin.html#GTypePluginCompleteInterfaceInfo">*GTypePluginCompleteInterfaceInfo</a>)
(<a href="GTypePlugin.html" title="GTypePlugin">GTypePlugin</a> *plugin,
<a href="gobject-Type-Information.html#GType">GType</a> instance_type,
<a href="gobject-Type-Information.html#GType">GType</a> interface_type,
<a href="gobject-Type-Information.html#GInterfaceInfo">GInterfaceInfo</a> *info);
void <a href="GTypePlugin.html#g-type-plugin-use">g_type_plugin_use</a> (<a href="GTypePlugin.html" title="GTypePlugin">GTypePlugin</a> *plugin);
void <a href="GTypePlugin.html#g-type-plugin-unuse">g_type_plugin_unuse</a> (<a href="GTypePlugin.html" title="GTypePlugin">GTypePlugin</a> *plugin);
void <a href="GTypePlugin.html#g-type-plugin-complete-type-info">g_type_plugin_complete_type_info</a>
(<a href="GTypePlugin.html" title="GTypePlugin">GTypePlugin</a> *plugin,
<a href="gobject-Type-Information.html#GType">GType</a> g_type,
<a href="gobject-Type-Information.html#GTypeInfo">GTypeInfo</a> *info,
<a href="gobject-Type-Information.html#GTypeValueTable">GTypeValueTable</a> *value_table);
void <a href="GTypePlugin.html#g-type-plugin-complete-interface-info">g_type_plugin_complete_interface_info</a>
(<a href="GTypePlugin.html" title="GTypePlugin">GTypePlugin</a> *plugin,
<a href="gobject-Type-Information.html#GType">GType</a> instance_type,
<a href="gobject-Type-Information.html#GType">GType</a> interface_type,
<a href="gobject-Type-Information.html#GInterfaceInfo">GInterfaceInfo</a> *info);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2655516"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GInterface
+----GTypePlugin
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2655541"></a><h2>Known Implementations</h2>
<p>
GTypePlugin is implemented by
<a href="GTypeModule.html" title="GTypeModule">GTypeModule</a>.</p>
</div>
<div class="refsect1" lang="en">
<a name="id2655565"></a><h2>Description</h2>
<p>
The GObject type system supports dynamic loading of types. The <a href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
interface is used to handle the lifecycle of dynamically loaded types.
It goes as follows:
</p>
<p>
</p>
<div class="orderedlist"><ol type="1">
<li><p>
The type is initially introduced (usually upon loading the module
the first time, or by your main application that knows what modules
introduces what types), like this:
<code class="literal">new_type_id = g_type_register_dynamic (parent_type_id,
"TypeName",
new_type_plugin,
type_flags);
</code>
where <code class="literal">new_type_plugin</code> is an implementation of the
<a href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> interface.
</p></li>
<li><p>
The type's implementation is referenced, e.g. through
<a href="gobject-Type-Information.html#g-type-class-ref"><code class="function">g_type_class_ref()</code></a> or through <a href="gobject-Type-Information.html#g-type-create-instance"><code class="function">g_type_create_instance()</code></a> (this is
being called by <a href="gobject-The-Base-Object-Type.html#g-object-new"><code class="function">g_object_new()</code></a>) or through one of the above done on
a type derived from <code class="literal">new_type_id</code>.
</p></li>
<li><p>
This causes the type system to load the type's implementation by calling
<a href="GTypePlugin.html#g-type-plugin-use"><code class="function">g_type_plugin_use()</code></a> and <a href="GTypePlugin.html#g-type-plugin-complete-type-info"><code class="function">g_type_plugin_complete_type_info()</code></a> on
<code class="literal">new_type_plugin</code>.
</p></li>
<li><p>
At some point the type's implementation isn't required anymore, e.g. after
<a href="gobject-Type-Information.html#g-type-class-unref"><code class="function">g_type_class_unref()</code></a> or <a href="gobject-Type-Information.html#g-type-free-instance"><code class="function">g_type_free_instance()</code></a> (called when the reference
count of an instance drops to zero).
</p></li>
<li><p>
This causes the type system to throw away the information retrieved from
<a href="GTypePlugin.html#g-type-plugin-complete-type-info"><code class="function">g_type_plugin_complete_type_info()</code></a> and then it calls
<a href="GTypePlugin.html#g-type-plugin-unuse"><code class="function">g_type_plugin_unuse()</code></a> on <code class="literal">new_type_plugin</code>.
</p></li>
<li><p>
Things may repeat from the second step.
</p></li>
</ol></div>
<p>
</p>
<p>
So basically, you need to implement a <a href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> type that carries a
use_count, once use_count goes from zero to one, you need to load the
implementation to successfully handle the upcoming
<a href="GTypePlugin.html#g-type-plugin-complete-type-info"><code class="function">g_type_plugin_complete_type_info()</code></a> call. Later, maybe after succeeding
use/unuse calls, once use_count drops to zero, you can unload the
implementation again. The type system makes sure to call <a href="GTypePlugin.html#g-type-plugin-use"><code class="function">g_type_plugin_use()</code></a>
and <a href="GTypePlugin.html#g-type-plugin-complete-type-info"><code class="function">g_type_plugin_complete_type_info()</code></a> again when the type is needed again.
</p>
<p>
<a href="GTypeModule.html" title="GTypeModule"><span class="type">GTypeModule</span></a> is an implementation of <a href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> that already implements
most of this except for the actual module loading and unloading. It even
handles multiple registered types per module.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2655852"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2655863"></a><h3>
<a name="GTypePlugin-struct"></a>GTypePlugin</h3>
<a class="indexterm" name="id2655876"></a><pre class="programlisting">typedef struct _GTypePlugin GTypePlugin;</pre>
<p>
The <span class="structname">GTypePlugin</span> typedef is used as a placeholder
for objects that implement the <span class="structname">GTypePlugin</span>
interface.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2655900"></a><h3>
<a name="GTypePluginClass"></a>GTypePluginClass</h3>
<a class="indexterm" name="id2655912"></a><pre class="programlisting">typedef struct {
GTypePluginUse use_plugin;
GTypePluginUnuse unuse_plugin;
GTypePluginCompleteTypeInfo complete_type_info;
GTypePluginCompleteInterfaceInfo complete_interface_info;
} GTypePluginClass;
</pre>
<p>
The <a href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> interface is used by the type system in order to handle
the lifecycle of dynamically loaded types.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><a href="GTypePlugin.html#GTypePluginUse">GTypePluginUse</a> <em class="structfield"><code>use_plugin</code></em>;</span></td>
<td>Increases the use count of the plugin.
</td>
</tr>
<tr>
<td>
<span class="term"><a href="GTypePlugin.html#GTypePluginUnuse">GTypePluginUnuse</a> <em class="structfield"><code>unuse_plugin</code></em>;</span></td>
<td>Decreases the use count of the plugin.
</td>
</tr>
<tr>
<td>
<span class="term"><a href="GTypePlugin.html#GTypePluginCompleteTypeInfo">GTypePluginCompleteTypeInfo</a> <em class="structfield"><code>complete_type_info</code></em>;</span></td>
<td>Fills in the <a href="gobject-Type-Information.html#GTypeInfo"><span class="type">GTypeInfo</span></a> and
<a href="gobject-Type-Information.html#GTypeValueTable"><span class="type">GTypeValueTable</span></a> structs for the type. The structs are initialized
with <code class="literal">memset(s, 0, sizeof (s))</code> before calling
this function.
</td>
</tr>
<tr>
<td>
<span class="term"><a href="GTypePlugin.html#GTypePluginCompleteInterfaceInfo">GTypePluginCompleteInterfaceInfo</a> <em class="structfield"><code>complete_interface_info</code></em>;</span></td>
<td>Fills in missing parts of the <a href="gobject-Type-Information.html#GInterfaceInfo"><span class="type">GInterfaceInfo</span></a>
for the interface. The structs is initialized with
<code class="literal">memset(s, 0, sizeof (s))</code> before calling
this function.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2656070"></a><h3>
<a name="GTypePluginUse"></a>GTypePluginUse ()</h3>
<a class="indexterm" name="id2656083"></a><pre class="programlisting">void (*GTypePluginUse) (<a href="GTypePlugin.html" title="GTypePlugin">GTypePlugin</a> *plugin);</pre>
<p>
The type of the <em class="parameter"><code>use_plugin</code></em> function of <a href="GTypePlugin.html#GTypePluginClass"><span class="type">GTypePluginClass</span></a>, which gets called
to increase the use count of <em class="parameter"><code>plugin</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>plugin</code></em> :</span></td>
<td>the <a href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> whose use count should be increased
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2656159"></a><h3>
<a name="GTypePluginUnuse"></a>GTypePluginUnuse ()</h3>
<a class="indexterm" name="id2656172"></a><pre class="programlisting">void (*GTypePluginUnuse) (<a href="GTypePlugin.html" title="GTypePlugin">GTypePlugin</a> *plugin);</pre>
<p>
The type of the <em class="parameter"><code>unuse_plugin</code></em> function of <a href="GTypePlugin.html#GTypePluginClass"><span class="type">GTypePluginClass</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>plugin</code></em> :</span></td>
<td>the <a href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> whose use count should be decreased
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2656241"></a><h3>
<a name="GTypePluginCompleteTypeInfo"></a>GTypePluginCompleteTypeInfo ()</h3>
<a class="indexterm" name="id2656255"></a><pre class="programlisting">void (*GTypePluginCompleteTypeInfo) (<a href="GTypePlugin.html" title="GTypePlugin">GTypePlugin</a> *plugin,
<a href="gobject-Type-Information.html#GType">GType</a> g_type,
<a href="gobject-Type-Information.html#GTypeInfo">GTypeInfo</a> *info,
<a href="gobject-Type-Information.html#GTypeValueTable">GTypeValueTable</a> *value_table);</pre>
<p>
The type of the <em class="parameter"><code>complete_type_info</code></em> function of <a href="GTypePlugin.html#GTypePluginClass"><span class="type">GTypePluginClass</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>plugin</code></em> :</span></td>
<td>the <a href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>g_type</code></em> :</span></td>
<td>the <a href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> whose info is completed
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>info</code></em> :</span></td>
<td>the <a href="gobject-Type-Information.html#GTypeInfo"><span class="type">GTypeInfo</span></a> struct to fill in
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>value_table</code></em> :</span></td>
<td>the <a href="gobject-Type-Information.html#GTypeValueTable"><span class="type">GTypeValueTable</span></a> to fill in
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2656413"></a><h3>
<a name="GTypePluginCompleteInterfaceInfo"></a>GTypePluginCompleteInterfaceInfo ()</h3>
<a class="indexterm" name="id2656426"></a><pre class="programlisting">void (*GTypePluginCompleteInterfaceInfo)
(<a href="GTypePlugin.html" title="GTypePlugin">GTypePlugin</a> *plugin,
<a href="gobject-Type-Information.html#GType">GType</a> instance_type,
<a href="gobject-Type-Information.html#GType">GType</a> interface_type,
<a href="gobject-Type-Information.html#GInterfaceInfo">GInterfaceInfo</a> *info);</pre>
<p>
The type of the <em class="parameter"><code>complete_interface_info</code></em> function of <a href="GTypePlugin.html#GTypePluginClass"><span class="type">GTypePluginClass</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>plugin</code></em> :</span></td>
<td>the <a href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>instance_type</code></em> :</span></td>
<td>the <a href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> of an instantiable type to which the interface
is added
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>interface_type</code></em> :</span></td>
<td>the <a href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> of the interface whose info is completed
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>info</code></em> :</span></td>
<td>the <a href="gobject-Type-Information.html#GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> to fill in
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2656587"></a><h3>
<a name="g-type-plugin-use"></a>g_type_plugin_use ()</h3>
<a class="indexterm" name="id2656600"></a><pre class="programlisting">void g_type_plugin_use (<a href="GTypePlugin.html" title="GTypePlugin">GTypePlugin</a> *plugin);</pre>
<p>
Calls the <em class="parameter"><code>use_plugin</code></em> function from the <a href="GTypePlugin.html#GTypePluginClass"><span class="type">GTypePluginClass</span></a> of <em class="parameter"><code>plugin</code></em>.
There should be no need to use this function outside of the GObject
type system itself.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>plugin</code></em> :</span></td>
<td>a <a href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2656675"></a><h3>
<a name="g-type-plugin-unuse"></a>g_type_plugin_unuse ()</h3>
<a class="indexterm" name="id2656689"></a><pre class="programlisting">void g_type_plugin_unuse (<a href="GTypePlugin.html" title="GTypePlugin">GTypePlugin</a> *plugin);</pre>
<p>
Calls the <em class="parameter"><code>unuse_plugin</code></em> function from the <a href="GTypePlugin.html#GTypePluginClass"><span class="type">GTypePluginClass</span></a> of <em class="parameter"><code>plugin</code></em>.
There should be no need to use this function outside of the GObject
type system itself.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>plugin</code></em> :</span></td>
<td>a <a href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2656764"></a><h3>
<a name="g-type-plugin-complete-type-info"></a>g_type_plugin_complete_type_info ()</h3>
<a class="indexterm" name="id2656778"></a><pre class="programlisting">void g_type_plugin_complete_type_info
(<a href="GTypePlugin.html" title="GTypePlugin">GTypePlugin</a> *plugin,
<a href="gobject-Type-Information.html#GType">GType</a> g_type,
<a href="gobject-Type-Information.html#GTypeInfo">GTypeInfo</a> *info,
<a href="gobject-Type-Information.html#GTypeValueTable">GTypeValueTable</a> *value_table);</pre>
<p>
Calls the <em class="parameter"><code>complete_type_info</code></em> function from the <a href="GTypePlugin.html#GTypePluginClass"><span class="type">GTypePluginClass</span></a> of <em class="parameter"><code>plugin</code></em>.
There should be no need to use this function outside of the GObject
type system itself.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>plugin</code></em> :</span></td>
<td>a <a href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>g_type</code></em> :</span></td>
<td>the <a href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> whose info is completed
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>info</code></em> :</span></td>
<td>the <a href="gobject-Type-Information.html#GTypeInfo"><span class="type">GTypeInfo</span></a> struct to fill in
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>value_table</code></em> :</span></td>
<td>the <a href="gobject-Type-Information.html#GTypeValueTable"><span class="type">GTypeValueTable</span></a> to fill in
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2656944"></a><h3>
<a name="g-type-plugin-complete-interface-info"></a>g_type_plugin_complete_interface_info ()</h3>
<a class="indexterm" name="id2656958"></a><pre class="programlisting">void g_type_plugin_complete_interface_info
(<a href="GTypePlugin.html" title="GTypePlugin">GTypePlugin</a> *plugin,
<a href="gobject-Type-Information.html#GType">GType</a> instance_type,
<a href="gobject-Type-Information.html#GType">GType</a> interface_type,
<a href="gobject-Type-Information.html#GInterfaceInfo">GInterfaceInfo</a> *info);</pre>
<p>
Calls the <em class="parameter"><code>complete_interface_info</code></em> function from the <a href="GTypePlugin.html#GTypePluginClass"><span class="type">GTypePluginClass</span></a>
of <em class="parameter"><code>plugin</code></em>. There should be no need to use this function outside of the
GObject type system itself.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>plugin</code></em> :</span></td>
<td>the <a href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>instance_type</code></em> :</span></td>
<td>the <a href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> of an instantiable type to which the interface
is added
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>interface_type</code></em> :</span></td>
<td>the <a href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> of the interface whose info is completed
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>info</code></em> :</span></td>
<td>the <a href="gobject-Type-Information.html#GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> to fill in
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2657128"></a><h2>See Also</h2>
<p>
<a href="GTypeModule.html" title="GTypeModule"><span class="type">GTypeModule</span></a> and <a href="gobject-Type-Information.html#g-type-register-dynamic"><code class="function">g_type_register_dynamic()</code></a>.
</p>
</div>
</div>
</body>
</html>