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.76.1">
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="GimpModuleDB.html" title="GimpModuleDB">
11
<meta name="generator" content="GTK-Doc V1.18 (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="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="#GimpModule.synopsis" class="shortcut">Top</a>
26
<a href="#GimpModule.description" class="shortcut">Description</a>
28
<a href="#GimpModule.object-hierarchy" class="shortcut">Object Hierarchy</a>
30
<a href="#GimpModule.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
32
<a href="#GimpModule.signals" class="shortcut">Signals</a>
35
<div class="refentry">
36
<a name="GimpModule"></a><div class="titlepage"></div>
37
<div class="refnamediv"><table width="100%"><tr>
39
<h2><span class="refentrytitle"><a name="GimpModule.top_of_page"></a>GimpModule</span></h2>
40
<p>GimpModule — A <span class="type">GTypeModule</span> subclass which implements module
41
loading using <span class="type">GModule</span>.</p>
43
<td valign="top" align="right"></td>
45
<div class="refsynopsisdiv">
46
<a name="GimpModule.synopsis"></a><h2>Synopsis</h2>
47
<pre class="synopsis"> <a class="link" href="GimpModule.html#GimpModule-struct" title="GimpModule">GimpModule</a>;
48
<a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo">GimpModuleInfo</a>;
49
enum <a class="link" href="GimpModule.html#GimpModuleState" title="enum GimpModuleState">GimpModuleState</a>;
50
const <a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="returnvalue">GimpModuleInfo</span></a> * (<a class="link" href="GimpModule.html#GimpModuleQueryFunc" title="GimpModuleQueryFunc ()">*GimpModuleQueryFunc</a>) (<em class="parameter"><code><span class="type">GTypeModule</span> *module</code></em>);
51
<span class="returnvalue">gboolean</span> (<a class="link" href="GimpModule.html#GimpModuleRegisterFunc" title="GimpModuleRegisterFunc ()">*GimpModuleRegisterFunc</a>) (<em class="parameter"><code><span class="type">GTypeModule</span> *module</code></em>);
52
#define <a class="link" href="GimpModule.html#GIMP-MODULE-ERROR:CAPS" title="GIMP_MODULE_ERROR">GIMP_MODULE_ERROR</a>
53
enum <a class="link" href="GimpModule.html#GimpModuleError" title="enum GimpModuleError">GimpModuleError</a>;
54
#define <a class="link" href="GimpModule.html#GIMP-MODULE-ABI-VERSION:CAPS" title="GIMP_MODULE_ABI_VERSION">GIMP_MODULE_ABI_VERSION</a>
55
#define <a class="link" href="GimpModule.html#GIMP-MODULE-PARAM-SERIALIZE:CAPS" title="GIMP_MODULE_PARAM_SERIALIZE">GIMP_MODULE_PARAM_SERIALIZE</a>
56
<a class="link" href="GimpModule.html" title="GimpModule"><span class="returnvalue">GimpModule</span></a> * <a class="link" href="GimpModule.html#gimp-module-new" title="gimp_module_new ()">gimp_module_new</a> (<em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>,
57
<em class="parameter"><code><span class="type">gboolean</span> load_inhibit</code></em>,
58
<em class="parameter"><code><span class="type">gboolean</span> verbose</code></em>);
59
<span class="returnvalue">void</span> <a class="link" href="GimpModule.html#gimp-module-modified" title="gimp_module_modified ()">gimp_module_modified</a> (<em class="parameter"><code><a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a> *module</code></em>);
60
<span class="returnvalue">gboolean</span> <a class="link" href="GimpModule.html#gimp-module-query-module" title="gimp_module_query_module ()">gimp_module_query_module</a> (<em class="parameter"><code><a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a> *module</code></em>);
61
<span class="returnvalue">void</span> <a class="link" href="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="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a> *module</code></em>,
62
<em class="parameter"><code><span class="type">gboolean</span> load_inhibit</code></em>);
63
const <span class="returnvalue">gchar</span> * <a class="link" href="GimpModule.html#gimp-module-state-name" title="gimp_module_state_name ()">gimp_module_state_name</a> (<em class="parameter"><code><a class="link" href="GimpModule.html#GimpModuleState" title="enum GimpModuleState"><span class="type">GimpModuleState</span></a> state</code></em>);
64
<span class="returnvalue">GType</span> <a class="link" href="GimpModule.html#gimp-module-register-enum" title="gimp_module_register_enum ()">gimp_module_register_enum</a> (<em class="parameter"><code><span class="type">GTypeModule</span> *module</code></em>,
65
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
66
<em class="parameter"><code>const <span class="type">GEnumValue</span> *const_static_values</code></em>);
67
<a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="returnvalue">GimpModuleInfo</span></a> * <a class="link" href="GimpModule.html#gimp-module-info-new" title="gimp_module_info_new ()">gimp_module_info_new</a> (<em class="parameter"><code><span class="type">guint32</span> abi_version</code></em>,
68
<em class="parameter"><code>const <span class="type">gchar</span> *purpose</code></em>,
69
<em class="parameter"><code>const <span class="type">gchar</span> *author</code></em>,
70
<em class="parameter"><code>const <span class="type">gchar</span> *version</code></em>,
71
<em class="parameter"><code>const <span class="type">gchar</span> *copyright</code></em>,
72
<em class="parameter"><code>const <span class="type">gchar</span> *date</code></em>);
73
<a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="returnvalue">GimpModuleInfo</span></a> * <a class="link" href="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="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> *info</code></em>);
74
<span class="returnvalue">void</span> <a class="link" href="GimpModule.html#gimp-module-info-free" title="gimp_module_info_free ()">gimp_module_info_free</a> (<em class="parameter"><code><a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> *info</code></em>);
75
<span class="returnvalue">GQuark</span> <a class="link" href="GimpModule.html#gimp-module-error-quark" title="gimp_module_error_quark ()">gimp_module_error_quark</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
78
<div class="refsect1">
79
<a name="GimpModule.object-hierarchy"></a><h2>Object Hierarchy</h2>
80
<pre class="synopsis">
86
<div class="refsect1">
87
<a name="GimpModule.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
92
<div class="refsect1">
93
<a name="GimpModule.signals"></a><h2>Signals</h2>
94
<pre class="synopsis">
95
"<a class="link" href="GimpModule.html#GimpModule-modified" title='The "modified" signal'>modified</a>" : <code class="literal">Run First</code>
98
<div class="refsect1">
99
<a name="GimpModule.description"></a><h2>Description</h2>
101
A <span class="type">GTypeModule</span> subclass which implements module loading using <span class="type">GModule</span>.
104
<div class="refsect1">
105
<a name="GimpModule.details"></a><h2>Details</h2>
106
<div class="refsect2">
107
<a name="GimpModule-struct"></a><h3>GimpModule</h3>
108
<pre class="programlisting">typedef struct {
109
gchar *filename; /* path to the module */
110
gboolean verbose; /* verbose error reporting */
111
GimpModuleState state; /* what's happened to the module */
112
gboolean on_disk; /* TRUE if file still exists */
113
gboolean load_inhibit; /* user requests not to load at boot time */
115
/* stuff from now on may be NULL depending on the state the module is in */
116
GimpModuleInfo *info; /* returned values from module_query */
117
gchar *last_module_error;
121
<a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a> is a generic mechanism to dynamically load modules into
122
GIMP. It is a <span class="type">GTypeModule</span> subclass, implementing module loading
123
using <span class="type">GModule</span>. <a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a> does not know which functionality is
124
implemented by the modules, it just provides a framework to get
125
arbitrary <span class="type">GType</span> implementations loaded from disk.
129
<div class="refsect2">
130
<a name="GimpModuleInfo"></a><h3>GimpModuleInfo</h3>
131
<pre class="programlisting">typedef struct {
141
This structure contains information about a loadable module.
143
<div class="variablelist"><table border="0">
144
<col align="left" valign="top">
147
<td><p><span class="term"><span class="type">guint32</span> <em class="structfield"><code><a name="GimpModuleInfo.abi-version"></a>abi_version</code></em>;</span></p></td>
148
<td>The <a class="link" href="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.</td>
151
<td><p><span class="term"><span class="type">gchar</span> *<em class="structfield"><code><a name="GimpModuleInfo.purpose"></a>purpose</code></em>;</span></p></td>
152
<td>The module's general purpose.</td>
155
<td><p><span class="term"><span class="type">gchar</span> *<em class="structfield"><code><a name="GimpModuleInfo.author"></a>author</code></em>;</span></p></td>
156
<td>The module's author.</td>
159
<td><p><span class="term"><span class="type">gchar</span> *<em class="structfield"><code><a name="GimpModuleInfo.version"></a>version</code></em>;</span></p></td>
160
<td>The module's version.</td>
163
<td><p><span class="term"><span class="type">gchar</span> *<em class="structfield"><code><a name="GimpModuleInfo.copyright"></a>copyright</code></em>;</span></p></td>
164
<td>The module's copyright.</td>
167
<td><p><span class="term"><span class="type">gchar</span> *<em class="structfield"><code><a name="GimpModuleInfo.date"></a>date</code></em>;</span></p></td>
168
<td>The module's release date.</td>
174
<div class="refsect2">
175
<a name="GimpModuleState"></a><h3>enum GimpModuleState</h3>
176
<pre class="programlisting">typedef enum {
177
GIMP_MODULE_STATE_ERROR,
178
GIMP_MODULE_STATE_LOADED,
179
GIMP_MODULE_STATE_LOAD_FAILED,
180
GIMP_MODULE_STATE_NOT_LOADED
184
The possible states a <a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a> can be in.
186
<div class="variablelist"><table border="0">
187
<col align="left" valign="top">
190
<td><p><a name="GIMP-MODULE-STATE-ERROR:CAPS"></a><span class="term"><code class="literal">GIMP_MODULE_STATE_ERROR</code></span></p></td>
191
<td>Missing <code class="function">gimp_module_register()</code> function
196
<td><p><a name="GIMP-MODULE-STATE-LOADED:CAPS"></a><span class="term"><code class="literal">GIMP_MODULE_STATE_LOADED</code></span></p></td>
197
<td>An instance of a type implemented by
198
this module is allocated.
202
<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>
203
<td>gimp_module_register() returned <code class="literal">FALSE</code>.
207
<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>
208
<td>There are no instances allocated of
209
types implemented by this module.
216
<div class="refsect2">
217
<a name="GimpModuleQueryFunc"></a><h3>GimpModuleQueryFunc ()</h3>
218
<pre class="programlisting">const <a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="returnvalue">GimpModuleInfo</span></a> * (*GimpModuleQueryFunc) (<em class="parameter"><code><span class="type">GTypeModule</span> *module</code></em>);</pre>
220
The signature of the query function a loadable GIMP module must
221
implement. In the module, the function must be called
222
<code class="function">gimp_module_query()</code>.
225
<a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a> will copy the returned <a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> struct, so the
226
module doesn't need to keep these values around (however in most
227
cases the module will just return a pointer to a constant
230
<div class="variablelist"><table border="0">
231
<col align="left" valign="top">
234
<td><p><span class="term"><em class="parameter"><code>module</code></em> :</span></p></td>
235
<td>The <a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a> responsible for this loadable module.</td>
238
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
239
<td>The <a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> struct describing the module.</td>
245
<div class="refsect2">
246
<a name="GimpModuleRegisterFunc"></a><h3>GimpModuleRegisterFunc ()</h3>
247
<pre class="programlisting"><span class="returnvalue">gboolean</span> (*GimpModuleRegisterFunc) (<em class="parameter"><code><span class="type">GTypeModule</span> *module</code></em>);</pre>
249
The signature of the register function a loadable GIMP module must
250
implement. In the module, the function must be called
251
<code class="function">gimp_module_register()</code>.
254
When this function is called, the module should register all the types
255
it implements with the passed <em class="parameter"><code>module</code></em>.
257
<div class="variablelist"><table border="0">
258
<col align="left" valign="top">
261
<td><p><span class="term"><em class="parameter"><code>module</code></em> :</span></p></td>
262
<td>The <a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a> responsible for this loadable module.</td>
265
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
267
<code class="literal">TRUE</code> on success, <code class="literal">FALSE</code> otherwise.</td>
273
<div class="refsect2">
274
<a name="GIMP-MODULE-ERROR:CAPS"></a><h3>GIMP_MODULE_ERROR</h3>
275
<pre class="programlisting">#define GIMP_MODULE_ERROR (gimp_module_error_quark ())
281
<div class="refsect2">
282
<a name="GimpModuleError"></a><h3>enum GimpModuleError</h3>
283
<pre class="programlisting">typedef enum {
284
GIMP_MODULE_FAILED /* generic error condition */
291
<div class="refsect2">
292
<a name="GIMP-MODULE-ABI-VERSION:CAPS"></a><h3>GIMP_MODULE_ABI_VERSION</h3>
293
<pre class="programlisting">#define GIMP_MODULE_ABI_VERSION 0x0004
296
The version of the module system's ABI. Modules put this value into
297
<a class="link" href="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
298
can check if it was compiled against the same module ABI the modules
299
are compiled against.
302
GIMP_MODULE_ABI_VERSION is incremented each time one of the
306
- the libgimpmodule implementation (if the change affects modules).
309
- one of the classes implemented by modules (currently <a href="/local/head/share/gtk-doc/html/libgimpwidgets/GimpColorDisplay.html"><span class="type">GimpColorDisplay</span></a>,
310
<a href="/local/head/share/gtk-doc/html/libgimpwidgets/GimpColorSelector.html"><span class="type">GimpColorSelector</span></a> and <a href="/local/head/share/gtk-doc/html/libgimpwidgets/GimpController.html"><span class="type">GimpController</span></a>).
314
<div class="refsect2">
315
<a name="GIMP-MODULE-PARAM-SERIALIZE:CAPS"></a><h3>GIMP_MODULE_PARAM_SERIALIZE</h3>
316
<pre class="programlisting">#define GIMP_MODULE_PARAM_SERIALIZE (1 << (0 + G_PARAM_USER_SHIFT))
318
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
319
<h3 class="title">Warning</h3>
320
<p><code class="literal">GIMP_MODULE_PARAM_SERIALIZE</code> is deprecated and should not be used in newly-written code.</p>
326
<div class="refsect2">
327
<a name="gimp-module-new"></a><h3>gimp_module_new ()</h3>
328
<pre class="programlisting"><a class="link" href="GimpModule.html" title="GimpModule"><span class="returnvalue">GimpModule</span></a> * gimp_module_new (<em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>,
329
<em class="parameter"><code><span class="type">gboolean</span> load_inhibit</code></em>,
330
<em class="parameter"><code><span class="type">gboolean</span> verbose</code></em>);</pre>
332
Creates a new <a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a> instance.
334
<div class="variablelist"><table border="0">
335
<col align="left" valign="top">
338
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
339
<td>The filename of a loadable module.</td>
342
<td><p><span class="term"><em class="parameter"><code>load_inhibit</code></em> :</span></p></td>
343
<td>Pass <code class="literal">TRUE</code> to exclude this module from auto-loading.</td>
346
<td><p><span class="term"><em class="parameter"><code>verbose</code></em> :</span></p></td>
347
<td>Pass <code class="literal">TRUE</code> to enable debugging output.</td>
350
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
351
<td>The new <a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a> object.</td>
357
<div class="refsect2">
358
<a name="gimp-module-modified"></a><h3>gimp_module_modified ()</h3>
359
<pre class="programlisting"><span class="returnvalue">void</span> gimp_module_modified (<em class="parameter"><code><a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a> *module</code></em>);</pre>
361
Emits the "modified" signal. Call it whenever you have modified the module
362
manually (which you shouldn't do).
364
<div class="variablelist"><table border="0">
365
<col align="left" valign="top">
367
<td><p><span class="term"><em class="parameter"><code>module</code></em> :</span></p></td>
368
<td>A <a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a>.</td>
373
<div class="refsect2">
374
<a name="gimp-module-query-module"></a><h3>gimp_module_query_module ()</h3>
375
<pre class="programlisting"><span class="returnvalue">gboolean</span> gimp_module_query_module (<em class="parameter"><code><a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a> *module</code></em>);</pre>
377
Queries the module without actually registering any of the types it
378
may implement. After successful query, the <em class="parameter"><code>info</code></em> field of the
379
<a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a> struct will be available for further inspection.
381
<div class="variablelist"><table border="0">
382
<col align="left" valign="top">
385
<td><p><span class="term"><em class="parameter"><code>module</code></em> :</span></p></td>
386
<td>A <a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a>.</td>
389
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
391
<code class="literal">TRUE</code> on success.</td>
397
<div class="refsect2">
398
<a name="gimp-module-set-load-inhibit"></a><h3>gimp_module_set_load_inhibit ()</h3>
399
<pre class="programlisting"><span class="returnvalue">void</span> gimp_module_set_load_inhibit (<em class="parameter"><code><a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a> *module</code></em>,
400
<em class="parameter"><code><span class="type">gboolean</span> load_inhibit</code></em>);</pre>
402
Sets the <em class="parameter"><code>load_inhibit</code></em> property if the module. Emits "modified".
404
<div class="variablelist"><table border="0">
405
<col align="left" valign="top">
408
<td><p><span class="term"><em class="parameter"><code>module</code></em> :</span></p></td>
409
<td>A <a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a>.</td>
412
<td><p><span class="term"><em class="parameter"><code>load_inhibit</code></em> :</span></p></td>
413
<td>Pass <code class="literal">TRUE</code> to exclude this module from auto-loading.</td>
419
<div class="refsect2">
420
<a name="gimp-module-state-name"></a><h3>gimp_module_state_name ()</h3>
421
<pre class="programlisting">const <span class="returnvalue">gchar</span> * gimp_module_state_name (<em class="parameter"><code><a class="link" href="GimpModule.html#GimpModuleState" title="enum GimpModuleState"><span class="type">GimpModuleState</span></a> state</code></em>);</pre>
423
Returns the translated textual representation of a <a class="link" href="GimpModule.html#GimpModuleState" title="enum GimpModuleState"><span class="type">GimpModuleState</span></a>.
424
The returned string must not be freed.
426
<div class="variablelist"><table border="0">
427
<col align="left" valign="top">
430
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
431
<td>A <a class="link" href="GimpModule.html#GimpModuleState" title="enum GimpModuleState"><span class="type">GimpModuleState</span></a>.</td>
434
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
435
<td>The <em class="parameter"><code>state</code></em>'s name.</td>
441
<div class="refsect2">
442
<a name="gimp-module-register-enum"></a><h3>gimp_module_register_enum ()</h3>
443
<pre class="programlisting"><span class="returnvalue">GType</span> gimp_module_register_enum (<em class="parameter"><code><span class="type">GTypeModule</span> *module</code></em>,
444
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
445
<em class="parameter"><code>const <span class="type">GEnumValue</span> *const_static_values</code></em>);</pre>
446
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
447
<h3 class="title">Warning</h3>
448
<p><code class="literal">gimp_module_register_enum</code> is deprecated and should not be used in newly-written code.</p>
451
This function is deprecated! Use <code class="function">g_type_module_register_enum()</code> instead.
453
<div class="variablelist"><table border="0">
454
<col align="left" valign="top">
457
<td><p><span class="term"><em class="parameter"><code>module</code></em> :</span></p></td>
461
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
462
<td>the name of the new enum type</td>
465
<td><p><span class="term"><em class="parameter"><code>const_static_values</code></em> :</span></p></td>
466
<td>the enum values</td>
469
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
470
<td>a new enum <span class="type">GType</span>
477
<div class="refsect2">
478
<a name="gimp-module-info-new"></a><h3>gimp_module_info_new ()</h3>
479
<pre class="programlisting"><a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="returnvalue">GimpModuleInfo</span></a> * gimp_module_info_new (<em class="parameter"><code><span class="type">guint32</span> abi_version</code></em>,
480
<em class="parameter"><code>const <span class="type">gchar</span> *purpose</code></em>,
481
<em class="parameter"><code>const <span class="type">gchar</span> *author</code></em>,
482
<em class="parameter"><code>const <span class="type">gchar</span> *version</code></em>,
483
<em class="parameter"><code>const <span class="type">gchar</span> *copyright</code></em>,
484
<em class="parameter"><code>const <span class="type">gchar</span> *date</code></em>);</pre>
486
Creates a newly allocated <a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> struct.
488
<div class="variablelist"><table border="0">
489
<col align="left" valign="top">
492
<td><p><span class="term"><em class="parameter"><code>abi_version</code></em> :</span></p></td>
493
<td>The <a class="link" href="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.</td>
496
<td><p><span class="term"><em class="parameter"><code>purpose</code></em> :</span></p></td>
497
<td>The module's general purpose.</td>
500
<td><p><span class="term"><em class="parameter"><code>author</code></em> :</span></p></td>
501
<td>The module's author.</td>
504
<td><p><span class="term"><em class="parameter"><code>version</code></em> :</span></p></td>
505
<td>The module's version.</td>
508
<td><p><span class="term"><em class="parameter"><code>copyright</code></em> :</span></p></td>
509
<td>The module's copyright.</td>
512
<td><p><span class="term"><em class="parameter"><code>date</code></em> :</span></p></td>
513
<td>The module's release date.</td>
516
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
517
<td>The new <a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> struct.</td>
523
<div class="refsect2">
524
<a name="gimp-module-info-copy"></a><h3>gimp_module_info_copy ()</h3>
525
<pre class="programlisting"><a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="returnvalue">GimpModuleInfo</span></a> * gimp_module_info_copy (<em class="parameter"><code>const <a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> *info</code></em>);</pre>
527
Copies a <a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> struct.
529
<div class="variablelist"><table border="0">
530
<col align="left" valign="top">
533
<td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
534
<td>The <a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> struct to copy.</td>
537
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
538
<td>The new copy.</td>
544
<div class="refsect2">
545
<a name="gimp-module-info-free"></a><h3>gimp_module_info_free ()</h3>
546
<pre class="programlisting"><span class="returnvalue">void</span> gimp_module_info_free (<em class="parameter"><code><a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> *info</code></em>);</pre>
548
Frees the passed <a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a>.
550
<div class="variablelist"><table border="0">
551
<col align="left" valign="top">
553
<td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
554
<td>The <a class="link" href="GimpModule.html#GimpModuleInfo" title="GimpModuleInfo"><span class="type">GimpModuleInfo</span></a> struct to free</td>
559
<div class="refsect2">
560
<a name="gimp-module-error-quark"></a><h3>gimp_module_error_quark ()</h3>
561
<pre class="programlisting"><span class="returnvalue">GQuark</span> gimp_module_error_quark (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
563
This function is never called directly. Use <a class="link" href="GimpModule.html#GIMP-MODULE-ERROR:CAPS" title="GIMP_MODULE_ERROR"><code class="function">GIMP_MODULE_ERROR()</code></a> instead.
565
<div class="variablelist"><table border="0">
566
<col align="left" valign="top">
568
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
569
<td>the <span class="type">GQuark</span> that defines the GIMP module error domain.</td>
572
<p class="since">Since GIMP 2.8</p>
575
<div class="refsect1">
576
<a name="GimpModule.signal-details"></a><h2>Signal Details</h2>
577
<div class="refsect2">
578
<a name="GimpModule-modified"></a><h3>The <code class="literal">"modified"</code> signal</h3>
579
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GimpModule.html" title="GimpModule"><span class="type">GimpModule</span></a> *gimpmodule,
580
<span class="type">gpointer</span> user_data) : <code class="literal">Run First</code></pre>
583
<div class="variablelist"><table border="0">
584
<col align="left" valign="top">
587
<td><p><span class="term"><em class="parameter"><code>gimpmodule</code></em> :</span></p></td>
588
<td>the object which received the signal.</td>
591
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
592
<td>user data set when the signal handler was connected.</td>
598
<div class="refsect1">
599
<a name="GimpModule.see-also"></a><h2>See Also</h2>
600
<span class="type">GModule</span>, <span class="type">GTypeModule</span>
605
Generated by GTK-Doc V1.18</div>
b'\\ No newline at end of file'