/usr/share/gtk-doc/html/libanjuta/AnjutaCModule.html is in libanjuta-dev 2:3.28.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>AnjutaCModule: Anjuta Developers Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="Anjuta Developers Reference Manual">
<link rel="up" href="libanjuta-internal-api.html" title="libanjuta internal API">
<link rel="prev" href="AnjutaCPluginFactory.html" title="AnjutaCPluginFactory">
<link rel="next" href="ESplash.html" title="ESplash">
<meta name="generator" content="GTK-Doc V1.27 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</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="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#AnjutaCModule.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#AnjutaCModule.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="libanjuta-internal-api.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="AnjutaCPluginFactory.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="ESplash.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="AnjutaCModule"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="AnjutaCModule.top_of_page"></a>AnjutaCModule</span></h2>
<p>AnjutaCModule — Anjuta C module</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="AnjutaCModule.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="AnjutaCModule.html" title="AnjutaCModule"><span class="returnvalue">AnjutaCModule</span></a> *
</td>
<td class="function_name">
<a class="link" href="AnjutaCModule.html#anjuta-c-module-new" title="anjuta_c_module_new ()">anjuta_c_module_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="AnjutaCModule.html#anjuta-c-module-get-last-error" title="anjuta_c_module_get_last_error ()">anjuta_c_module_get_last_error</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="AnjutaCModule.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
<span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/GTypeModule.html#GTypeModule-struct">GTypeModule</a>
<span class="lineart">╰──</span> AnjutaCModule
</pre>
</div>
<div class="refsect1">
<a name="AnjutaCModule.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include <libanjuta/anjuta-c-module.h>
</pre>
</div>
<div class="refsect1">
<a name="AnjutaCModule.description"></a><h2>Description</h2>
<p>A module is the part of the plugin containing the code. For machine code
compiled from C sources by example, it is a shared library and contained in
a .so file on Linux. GLib provides a portable way to load dynamically such
code with <a href="/usr/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html#GModule"><span class="type">GModule</span></a> objects.</p>
<p>In GLib you can register a dynamic type which means that you links a GLib
type with a module. When the type is used for the first time the module is
loaded. When the type is not used anymore, the module is unloaded. Most of
the code necessary to do this is already written in GLib <a href="/usr/share/gtk-doc/html/gobject/GTypeModule.html#GTypeModule-struct"><span class="type">GTypeModule</span></a> object
except the load and unload function.</p>
<p><a class="link" href="AnjutaCModule.html" title="AnjutaCModule"><span class="type">AnjutaCModule</span></a> is used only by a <a class="link" href="AnjutaCPluginFactory.html" title="AnjutaCPluginFactory"><span class="type">AnjutaCPluginFactory</span></a>. It derives from
<a href="/usr/share/gtk-doc/html/gobject/GTypeModule.html#GTypeModule-struct"><span class="type">GTypeModule</span></a> and implements the load and unload function using a <a href="/usr/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html#GModule"><span class="type">GModule</span></a>
object for a module written in C.</p>
<p>Anjuta plugin types are not registered before loading the module.
The loading of the module is done explicitly and types are registered just
after in a function included in the plugin. This function is named
anjuta_glue_register_components and has a <a href="/usr/share/gtk-doc/html/gobject/GTypeModule.html#GTypeModule-struct"><span class="type">GTypeModule</span></a> as argument.
The plugin must registers at the least the plugin type dynamically. It can
register other types, but this is currently not used.</p>
<p>After loading a module one or more plugin objects will be created using the
name of the plugin type which has just been registered. The module
will stay loaded while at least one plugin object is present. If all
plugins objects are destroyed the unload function will be called and the
module can be unloaded and removed from memory.</p>
<p>It could be useful that some modules stay in memory even if there is no
object using it. A typical example is if some plugin code or some code of
a library used by a plugin registers a GLib type statically. GLib types can
be registered statically at run time but cannot be unregistered later.
The code (or rather the data used in the registration) must stay in the
memory even if the type is not used. In order to avoid this, you must
register every type dynamically. You could have other situations where a
module cannot be unloaded. By default, Anjuta plugin modules are not
unloaded unless it is explicitly allowed.</p>
</div>
<div class="refsect1">
<a name="AnjutaCModule.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="anjuta-c-module-new"></a><h3>anjuta_c_module_new ()</h3>
<pre class="programlisting"><a class="link" href="AnjutaCModule.html" title="AnjutaCModule"><span class="returnvalue">AnjutaCModule</span></a> *
anjuta_c_module_new (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *path</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>);</pre>
<p>Create a new <a class="link" href="AnjutaCModule.html" title="AnjutaCModule"><span class="type">AnjutaCModule</span></a> object.</p>
<div class="refsect3">
<a name="anjuta-c-module-new.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>path</p></td>
<td class="parameter_description"><p>The full path of the module</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>The name of the module</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="anjuta-c-module-new.returns"></a><h4>Returns</h4>
<p> a new <a class="link" href="AnjutaCModule.html" title="AnjutaCModule"><span class="type">AnjutaCModule</span></a> object.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="anjuta-c-module-get-last-error"></a><h3>anjuta_c_module_get_last_error ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
anjuta_c_module_get_last_error (<em class="parameter"><code><a class="link" href="AnjutaCModule.html" title="AnjutaCModule"><span class="type">AnjutaCModule</span></a> *module</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
<p>Receives the error that occured when the module was loaded</p>
<div class="refsect3">
<a name="anjuta-c-module-get-last-error.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>module</p></td>
<td class="parameter_description"><p>AnjutaCModule object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>err</p></td>
<td class="parameter_description"><p>return location for a GError</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="anjuta-c-module-get-last-error.returns"></a><h4>Returns</h4>
<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if there was an Error, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p>
</div>
</div>
</div>
<div class="refsect1">
<a name="AnjutaCModule.other_details"></a><h2>Types and Values</h2>
</div>
<div class="refsect1">
<a name="AnjutaCModule.see-also"></a><h2>See Also</h2>
<p><a class="link" href="AnjutaCPluginFactory.html" title="AnjutaCPluginFactory"><span class="type">AnjutaCPluginFactory</span></a></p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.27</div>
</body>
</html>
|