1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>GimpModule</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
<link rel="home" href="index.html" title="GIMP Module Library Reference Manual">
8
<link rel="up" href="libgimpmodule.html" title="Part I. GIMP Module Library">
9
<link rel="prev" href="libgimpmodule.html" title="Part I. GIMP Module Library">
10
<link rel="next" href="libgimpmodule-gimpmoduledb.html" title="GimpModuleDB">
11
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
<td><a accesskey="p" href="libgimpmodule.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
<td><a accesskey="u" href="libgimpmodule.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">GIMP Module Library Reference Manual</th>
21
<td><a accesskey="n" href="libgimpmodule-gimpmoduledb.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23
<tr><td colspan="5" class="shortcuts">
24
<a href="#libgimpmodule-gimpmodule.synopsis" class="shortcut">Top</a>
26
<a href="#libgimpmodule-gimpmodule.description" class="shortcut">Description</a>
28
<a href="#libgimpmodule-gimpmodule.object-hierarchy" class="shortcut">Object Hierarchy</a>
30
<a href="#libgimpmodule-gimpmodule.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
32
<a href="#libgimpmodule-gimpmodule.signals" class="shortcut">Signals</a>
35
<div class="refentry" title="GimpModule">
36
<a name="libgimpmodule-gimpmodule"></a><div class="titlepage"></div>
37
<div class="refnamediv"><table width="100%"><tr>
39
<h2><span class="refentrytitle"><a name="libgimpmodule-gimpmodule.top_of_page"></a>GimpModule</span></h2>
40
<p>GimpModule — A <a href="/usr/share/gtk-doc/html/gobject/GTypeModule.html"><span class="type">GTypeModule</span></a> subclass which implements module loading using <a href="/usr/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html#GModule"><span class="type">GModule</span></a>.</p>
42
<td valign="top" align="right"></td>
44
<div class="refsynopsisdiv" title="Synopsis">
45
<a name="libgimpmodule-gimpmodule.synopsis"></a><h2>Synopsis</h2>
46
<a name="GimpModule"></a><pre class="synopsis"> <a class="link" href="libgimpmodule-gimpmodule.html#GimpModule-struct" title="GimpModule">GimpModule</a>;
47
<a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo">GimpModuleInfo</a>;
48
enum <a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleState" title="enum GimpModuleState">GimpModuleState</a>;
49
const <a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="returnvalue">GimpModuleInfo</span></a> * (<a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleQueryFunc" title="GimpModuleQueryFunc ()">*GimpModuleQueryFunc</a>) (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/GTypeModule.html"><span class="type">GTypeModule</span></a> *module</code></em>);
50
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> (<a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleRegisterFunc" title="GimpModuleRegisterFunc ()">*GimpModuleRegisterFunc</a>) (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/GTypeModule.html"><span class="type">GTypeModule</span></a> *module</code></em>);
51
#define <a class="link" href="libgimpmodule-gimpmodule.html#GIMP-MODULE-ABI-VERSION:CAPS" title="GIMP_MODULE_ABI_VERSION">GIMP_MODULE_ABI_VERSION</a>
52
#define <a class="link" href="libgimpmodule-gimpmodule.html#GIMP-MODULE-PARAM-SERIALIZE:CAPS" title="GIMP_MODULE_PARAM_SERIALIZE">GIMP_MODULE_PARAM_SERIALIZE</a>
53
<a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="returnvalue">GimpModule</span></a> * <a class="link" href="libgimpmodule-gimpmodule.html#gimp-module-new" title="gimp_module_new ()">gimp_module_new</a> (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>,
54
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> load_inhibit</code></em>,
55
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> verbose</code></em>);
56
<span class="returnvalue">void</span> <a class="link" href="libgimpmodule-gimpmodule.html#gimp-module-modified" title="gimp_module_modified ()">gimp_module_modified</a> (<em class="parameter"><code><a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a> *module</code></em>);
57
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libgimpmodule-gimpmodule.html#gimp-module-query-module" title="gimp_module_query_module ()">gimp_module_query_module</a> (<em class="parameter"><code><a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a> *module</code></em>);
58
<span class="returnvalue">void</span> <a class="link" href="libgimpmodule-gimpmodule.html#gimp-module-set-load-inhibit" title="gimp_module_set_load_inhibit ()">gimp_module_set_load_inhibit</a> (<em class="parameter"><code><a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a> *module</code></em>,
59
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> load_inhibit</code></em>);
60
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="libgimpmodule-gimpmodule.html#gimp-module-state-name" title="gimp_module_state_name ()">gimp_module_state_name</a> (<em class="parameter"><code><a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleState" title="enum GimpModuleState"><span class="type">GimpModuleState</span></a> state</code></em>);
61
<a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> <a class="link" href="libgimpmodule-gimpmodule.html#gimp-module-register-enum" title="gimp_module_register_enum ()">gimp_module_register_enum</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/GTypeModule.html"><span class="type">GTypeModule</span></a> *module</code></em>,
62
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
63
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html#GEnumValue"><span class="type">GEnumValue</span></a> *const_static_values</code></em>);
64
<a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="returnvalue">GimpModuleInfo</span></a> * <a class="link" href="libgimpmodule-gimpmodule.html#gimp-module-info-new" title="gimp_module_info_new ()">gimp_module_info_new</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> abi_version</code></em>,
65
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *purpose</code></em>,
66
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *author</code></em>,
67
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *version</code></em>,
68
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *copyright</code></em>,
69
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *date</code></em>);
70
<a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="returnvalue">GimpModuleInfo</span></a> * <a class="link" href="libgimpmodule-gimpmodule.html#gimp-module-info-copy" title="gimp_module_info_copy ()">gimp_module_info_copy</a> (<em class="parameter"><code>const <a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> *info</code></em>);
71
<span class="returnvalue">void</span> <a class="link" href="libgimpmodule-gimpmodule.html#gimp-module-info-free" title="gimp_module_info_free ()">gimp_module_info_free</a> (<em class="parameter"><code><a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> *info</code></em>);
74
<div class="refsect1" title="Object Hierarchy">
75
<a name="libgimpmodule-gimpmodule.object-hierarchy"></a><h2>Object Hierarchy</h2>
76
<pre class="synopsis">
77
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
78
+----<a href="/usr/share/gtk-doc/html/gobject/GTypeModule.html">GTypeModule</a>
82
<div class="refsect1" title="Implemented Interfaces">
83
<a name="libgimpmodule-gimpmodule.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
86
<a href="/usr/share/gtk-doc/html/gobject/GTypePlugin.html">GTypePlugin</a>.</p>
88
<div class="refsect1" title="Signals">
89
<a name="libgimpmodule-gimpmodule.signals"></a><h2>Signals</h2>
90
<pre class="synopsis">
91
"<a class="link" href="libgimpmodule-gimpmodule.html#GimpModule-modified" title='The "modified" signal'>modified</a>" : Run First
94
<div class="refsect1" title="Description">
95
<a name="libgimpmodule-gimpmodule.description"></a><h2>Description</h2>
97
A <a href="/usr/share/gtk-doc/html/gobject/GTypeModule.html"><span class="type">GTypeModule</span></a> subclass which implements module loading using <a href="/usr/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html#GModule"><span class="type">GModule</span></a>.
100
<div class="refsect1" title="Details">
101
<a name="libgimpmodule-gimpmodule.details"></a><h2>Details</h2>
102
<div class="refsect2" title="GimpModule">
103
<a name="GimpModule-struct"></a><h3>GimpModule</h3>
104
<pre class="programlisting">typedef struct {
105
gchar *filename; /* path to the module */
106
gboolean verbose; /* verbose error reporting */
107
GimpModuleState state; /* what's happened to the module */
108
gboolean on_disk; /* TRUE if file still exists */
109
gboolean load_inhibit; /* user requests not to load at boot time */
111
/* stuff from now on may be NULL depending on the state the module is in */
112
GimpModuleInfo *info; /* returned values from module_query */
113
gchar *last_module_error;
117
<a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a> is a generic mechanism to dynamically load modules into
118
GIMP. It is a <a href="/usr/share/gtk-doc/html/gobject/GTypeModule.html"><span class="type">GTypeModule</span></a> subclass, implementing module loading
119
using <a href="/usr/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html#GModule"><span class="type">GModule</span></a>. <a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a> does not know which functionality is
120
implemented by the modules, it just provides a framework to get
121
arbitrary <a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> implementations loaded from disk.
125
<div class="refsect2" title="GimpModuleInfo">
126
<a name="GimpModuleInfo"></a><h3>GimpModuleInfo</h3>
127
<pre class="programlisting">typedef struct {
137
This structure contains information about a loadable module.
139
<div class="variablelist"><table border="0">
140
<col align="left" valign="top">
143
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GimpModuleInfo.abi-version"></a>abi_version</code></em>;</span></p></td>
144
<td>The <a class="link" href="libgimpmodule-gimpmodule.html#GIMP-MODULE-ABI-VERSION:CAPS" title="GIMP_MODULE_ABI_VERSION"><span class="type">GIMP_MODULE_ABI_VERSION</span></a> the module was compiled against.
148
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GimpModuleInfo.purpose"></a>purpose</code></em>;</span></p></td>
149
<td> The module's general purpose.
153
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GimpModuleInfo.author"></a>author</code></em>;</span></p></td>
154
<td> The module's author.
158
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GimpModuleInfo.version"></a>version</code></em>;</span></p></td>
159
<td> The module's version.
163
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GimpModuleInfo.copyright"></a>copyright</code></em>;</span></p></td>
164
<td> The module's copyright.
168
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GimpModuleInfo.date"></a>date</code></em>;</span></p></td>
169
<td> The module's release date.
176
<div class="refsect2" title="enum GimpModuleState">
177
<a name="GimpModuleState"></a><h3>enum GimpModuleState</h3>
178
<pre class="programlisting">typedef enum
180
GIMP_MODULE_STATE_ERROR, /* missing gimp_module_register function
183
GIMP_MODULE_STATE_LOADED, /* an instance of a type implemented by
184
* this module is allocated
186
GIMP_MODULE_STATE_LOAD_FAILED, /* gimp_module_register returned FALSE
188
GIMP_MODULE_STATE_NOT_LOADED /* there are no instances allocated of
189
* types implemented by this module
194
The possible states a <a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a> can be in.
196
<div class="variablelist"><table border="0">
197
<col align="left" valign="top">
200
<td><p><a name="GIMP-MODULE-STATE-ERROR:CAPS"></a><span class="term"><code class="literal">GIMP_MODULE_STATE_ERROR</code></span></p></td>
201
<td> Missing <code class="function">gimp_module_register()</code> function
206
<td><p><a name="GIMP-MODULE-STATE-LOADED:CAPS"></a><span class="term"><code class="literal">GIMP_MODULE_STATE_LOADED</code></span></p></td>
207
<td> An instance of a type implemented by
208
this module is allocated.
212
<td><p><a name="GIMP-MODULE-STATE-LOAD-FAILED:CAPS"></a><span class="term"><code class="literal">GIMP_MODULE_STATE_LOAD_FAILED</code></span></p></td>
213
<td>gimp_module_register() returned <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><span class="type">FALSE</span></a>.
217
<td><p><a name="GIMP-MODULE-STATE-NOT-LOADED:CAPS"></a><span class="term"><code class="literal">GIMP_MODULE_STATE_NOT_LOADED</code></span></p></td>
218
<td> There are no instances allocated of
219
types implemented by this module.
226
<div class="refsect2" title="GimpModuleQueryFunc ()">
227
<a name="GimpModuleQueryFunc"></a><h3>GimpModuleQueryFunc ()</h3>
228
<pre class="programlisting">const <a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="returnvalue">GimpModuleInfo</span></a> * (*GimpModuleQueryFunc) (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/GTypeModule.html"><span class="type">GTypeModule</span></a> *module</code></em>);</pre>
230
The signature of the query function a loadable GIMP module must
231
implement. In the module, the function must be called
232
<code class="function">gimp_module_query()</code>.
235
<a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a> will copy the returned <a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> struct, so the
236
module doesn't need to keep these values around (however in most cases
237
the module will just return a pointer to a constant structure).
239
<div class="variablelist"><table border="0">
240
<col align="left" valign="top">
243
<td><p><span class="term"><em class="parameter"><code>module</code></em> :</span></p></td>
244
<td> The <a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a> responsible for this loadable module.
248
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
249
<td>The <a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> struct describing the module.
256
<div class="refsect2" title="GimpModuleRegisterFunc ()">
257
<a name="GimpModuleRegisterFunc"></a><h3>GimpModuleRegisterFunc ()</h3>
258
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> (*GimpModuleRegisterFunc) (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/GTypeModule.html"><span class="type">GTypeModule</span></a> *module</code></em>);</pre>
260
The signature of the register function a loadable GIMP module must
261
implement. In the module, the function must be called
262
<code class="function">gimp_module_register()</code>.
265
When this function is called, the module should register all the types
266
it implements with the passed <em class="parameter"><code>module</code></em>.
268
<div class="variablelist"><table border="0">
269
<col align="left" valign="top">
272
<td><p><span class="term"><em class="parameter"><code>module</code></em> :</span></p></td>
273
<td> The <a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a> responsible for this loadable module.
277
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
279
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> on success, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><span class="type">FALSE</span></a> otherwise.
286
<div class="refsect2" title="GIMP_MODULE_ABI_VERSION">
287
<a name="GIMP-MODULE-ABI-VERSION:CAPS"></a><h3>GIMP_MODULE_ABI_VERSION</h3>
288
<pre class="programlisting">#define GIMP_MODULE_ABI_VERSION 0x0004
291
The version of the module system's ABI. Modules put this value into
292
<a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a>'s <em class="parameter"><code>abi_version</code></em> field so the code loading the modules
293
can check if it was compiled against the same module ABI the modules
294
are compiled against.
298
<div class="refsect2" title="GIMP_MODULE_PARAM_SERIALIZE">
299
<a name="GIMP-MODULE-PARAM-SERIALIZE:CAPS"></a><h3>GIMP_MODULE_PARAM_SERIALIZE</h3>
300
<pre class="programlisting">#define GIMP_MODULE_PARAM_SERIALIZE (1 << (0 + G_PARAM_USER_SHIFT))
302
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
303
<h3 class="title">Warning</h3>
304
<p><code class="literal">GIMP_MODULE_PARAM_SERIALIZE</code> is deprecated and should not be used in newly-written code.</p>
310
<div class="refsect2" title="gimp_module_new ()">
311
<a name="gimp-module-new"></a><h3>gimp_module_new ()</h3>
312
<pre class="programlisting"><a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="returnvalue">GimpModule</span></a> * gimp_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> *filename</code></em>,
313
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> load_inhibit</code></em>,
314
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> verbose</code></em>);</pre>
316
Creates a new <a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a> instance.
318
<div class="variablelist"><table border="0">
319
<col align="left" valign="top">
322
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
323
<td>The filename of a loadable module.
327
<td><p><span class="term"><em class="parameter"><code>load_inhibit</code></em> :</span></p></td>
328
<td>Pass <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to exclude this module from auto-loading.
332
<td><p><span class="term"><em class="parameter"><code>verbose</code></em> :</span></p></td>
333
<td>Pass <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to enable debugging output.
337
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
338
<td> The new <a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a> object.
345
<div class="refsect2" title="gimp_module_modified ()">
346
<a name="gimp-module-modified"></a><h3>gimp_module_modified ()</h3>
347
<pre class="programlisting"><span class="returnvalue">void</span> gimp_module_modified (<em class="parameter"><code><a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a> *module</code></em>);</pre>
349
Emits the "modified" signal. Call it whenever you have modified the module
350
manually (which you shouldn't do).
352
<div class="variablelist"><table border="0">
353
<col align="left" valign="top">
355
<td><p><span class="term"><em class="parameter"><code>module</code></em> :</span></p></td>
356
<td>A <a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a>.
362
<div class="refsect2" title="gimp_module_query_module ()">
363
<a name="gimp-module-query-module"></a><h3>gimp_module_query_module ()</h3>
364
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gimp_module_query_module (<em class="parameter"><code><a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a> *module</code></em>);</pre>
366
Queries the module without actually registering any of the types it
367
may implement. After successful query, the <em class="parameter"><code>info</code></em> field of the
368
<a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a> struct will be available for further inspection.
370
<div class="variablelist"><table border="0">
371
<col align="left" valign="top">
374
<td><p><span class="term"><em class="parameter"><code>module</code></em> :</span></p></td>
375
<td>A <a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a>.
379
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
380
<td> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.
387
<div class="refsect2" title="gimp_module_set_load_inhibit ()">
388
<a name="gimp-module-set-load-inhibit"></a><h3>gimp_module_set_load_inhibit ()</h3>
389
<pre class="programlisting"><span class="returnvalue">void</span> gimp_module_set_load_inhibit (<em class="parameter"><code><a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a> *module</code></em>,
390
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> load_inhibit</code></em>);</pre>
392
Sets the <em class="parameter"><code>load_inhibit</code></em> property if the module. Emits "modified".
394
<div class="variablelist"><table border="0">
395
<col align="left" valign="top">
398
<td><p><span class="term"><em class="parameter"><code>module</code></em> :</span></p></td>
399
<td>A <a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a>.
403
<td><p><span class="term"><em class="parameter"><code>load_inhibit</code></em> :</span></p></td>
404
<td>Pass <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to exclude this module from auto-loading.
411
<div class="refsect2" title="gimp_module_state_name ()">
412
<a name="gimp-module-state-name"></a><h3>gimp_module_state_name ()</h3>
413
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gimp_module_state_name (<em class="parameter"><code><a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleState" title="enum GimpModuleState"><span class="type">GimpModuleState</span></a> state</code></em>);</pre>
415
Returns the translated textual representation of a <a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleState" title="enum GimpModuleState"><span class="type">GimpModuleState</span></a>.
416
The returned string must not be freed.
418
<div class="variablelist"><table border="0">
419
<col align="left" valign="top">
422
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
423
<td>A <a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleState" title="enum GimpModuleState"><span class="type">GimpModuleState</span></a>.
427
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
428
<td> The <em class="parameter"><code>state</code></em>'s name.
435
<div class="refsect2" title="gimp_module_register_enum ()">
436
<a name="gimp-module-register-enum"></a><h3>gimp_module_register_enum ()</h3>
437
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> gimp_module_register_enum (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/GTypeModule.html"><span class="type">GTypeModule</span></a> *module</code></em>,
438
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
439
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html#GEnumValue"><span class="type">GEnumValue</span></a> *const_static_values</code></em>);</pre>
440
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
441
<h3 class="title">Warning</h3>
442
<p><code class="literal">gimp_module_register_enum</code> is deprecated and should not be used in newly-written code.</p>
445
This function is deprecated! Use <a href="/usr/share/gtk-doc/html/gobject/GTypeModule.html#g-type-module-register-enum"><code class="function">g_type_module_register_enum()</code></a> instead.
447
<div class="variablelist"><table border="0">
448
<col align="left" valign="top">
450
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
451
<td> a new enum <a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a>
457
<div class="refsect2" title="gimp_module_info_new ()">
458
<a name="gimp-module-info-new"></a><h3>gimp_module_info_new ()</h3>
459
<pre class="programlisting"><a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="returnvalue">GimpModuleInfo</span></a> * gimp_module_info_new (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> abi_version</code></em>,
460
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *purpose</code></em>,
461
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *author</code></em>,
462
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *version</code></em>,
463
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *copyright</code></em>,
464
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *date</code></em>);</pre>
466
Creates a newly allocated <a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> struct.
468
<div class="variablelist"><table border="0">
469
<col align="left" valign="top">
472
<td><p><span class="term"><em class="parameter"><code>abi_version</code></em> :</span></p></td>
473
<td>The <a class="link" href="libgimpmodule-gimpmodule.html#GIMP-MODULE-ABI-VERSION:CAPS" title="GIMP_MODULE_ABI_VERSION"><span class="type">GIMP_MODULE_ABI_VERSION</span></a> the module was compiled against.
477
<td><p><span class="term"><em class="parameter"><code>purpose</code></em> :</span></p></td>
478
<td>The module's general purpose.
482
<td><p><span class="term"><em class="parameter"><code>author</code></em> :</span></p></td>
483
<td>The module's author.
487
<td><p><span class="term"><em class="parameter"><code>version</code></em> :</span></p></td>
488
<td>The module's version.
492
<td><p><span class="term"><em class="parameter"><code>copyright</code></em> :</span></p></td>
493
<td>The module's copyright.
497
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
498
<td>The module's release date.
502
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
503
<td> The new <a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> struct.
510
<div class="refsect2" title="gimp_module_info_copy ()">
511
<a name="gimp-module-info-copy"></a><h3>gimp_module_info_copy ()</h3>
512
<pre class="programlisting"><a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="returnvalue">GimpModuleInfo</span></a> * gimp_module_info_copy (<em class="parameter"><code>const <a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> *info</code></em>);</pre>
514
Copies a <a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> struct.
516
<div class="variablelist"><table border="0">
517
<col align="left" valign="top">
520
<td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
521
<td>The <a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> struct to copy.
525
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
533
<div class="refsect2" title="gimp_module_info_free ()">
534
<a name="gimp-module-info-free"></a><h3>gimp_module_info_free ()</h3>
535
<pre class="programlisting"><span class="returnvalue">void</span> gimp_module_info_free (<em class="parameter"><code><a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> *info</code></em>);</pre>
537
Frees the passed <a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a>.
539
<div class="variablelist"><table border="0">
540
<col align="left" valign="top">
542
<td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
543
<td>The <a class="link" href="libgimpmodule-gimpmodule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> struct to free
549
<div class="refsect1" title="Signal Details">
550
<a name="libgimpmodule-gimpmodule.signal-details"></a><h2>Signal Details</h2>
551
<div class="refsect2" title='The "modified" signal'>
552
<a name="GimpModule-modified"></a><h3>The <code class="literal">"modified"</code> signal</h3>
553
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="libgimpmodule-gimpmodule.html#GimpModule"><span class="type">GimpModule</span></a> *gimpmodule,
554
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run First</pre>
557
<div class="variablelist"><table border="0">
558
<col align="left" valign="top">
561
<td><p><span class="term"><em class="parameter"><code>gimpmodule</code></em> :</span></p></td>
562
<td>the object which received the signal.
566
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
567
<td>user data set when the signal handler was connected.</td>
573
<div class="refsect1" title="See Also">
574
<a name="libgimpmodule-gimpmodule.see-also"></a><h2>See Also</h2>
576
<a href="/usr/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html#GModule"><span class="type">GModule</span></a>
579
<a href="/usr/share/gtk-doc/html/gobject/GTypeModule.html"><span class="type">GTypeModule</span></a>
585
Generated by GTK-Doc V1.15</div>
b'\\ No newline at end of file'