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
|
/*
SANE EPSON backend
Copyright (C) 2005 SEIKO EPSON CORPORATION
This file is part of the `iscan' program.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
As a special exception, the copyright holders give permission
to link the code of this program with the esmod library and
distribute linked combinations including the two. You must obey
the GNU General Public License in all respects for all of the
code used other then esmod.
*/
#ifndef GIMP_PLUGIN_H
#define GIMP_PLUGIN_H
#ifdef HAVE_GIMP_2
/* Define these structures for using gimp-devel-2 */
struct _GimpParamColor_1
{
guint8 red;
guint8 green;
guint8 blue;
};
typedef struct _GimpParamColor_1 GimpParamColor_1 ;
union _GimpParamData_1
{
gint32 d_int32;
gint16 d_int16;
gint8 d_int8;
gdouble d_float;
gchar *d_string;
gint32 *d_int32array;
gint16 *d_int16array;
gint8 *d_int8array;
gdouble *d_floatarray;
gchar **d_stringarray;
GimpParamColor_1 d_color;
GimpParamRegion d_region;
gint32 d_display;
gint32 d_image;
gint32 d_layer;
gint32 d_layer_mask;
gint32 d_channel;
gint32 d_drawable;
gint32 d_selection;
gint32 d_boundary;
gint32 d_path;
gint32 d_unit;
GimpParasite d_parasite;
gint32 d_tattoo;
GimpPDBStatusType d_status;
};
typedef union _GimpParamData_1 GimpParamData_1 ;
struct _GimpParam_1
{
GimpPDBArgType type;
GimpParamData_1 data;
};
typedef struct _GimpParam_1 GimpParam_1;
typedef void (* GimpInitProc_1) (void);
typedef void (* GimpQuitProc_1) (void);
typedef void (* GimpQueryProc_1) (void);
typedef void (* GimpRunProc_1) (gchar *name,
gint n_params,
GimpParam_1 *param,
gint *n_return_vals,
GimpParam_1 **return_vals);
struct _GimpPlugInInfo_1
{
/* called when the gimp application initially starts up */
GimpInitProc_1 init_proc;
/* called when the gimp application exits */
GimpQuitProc_1 quit_proc;
/* called by the gimp so that the plug-in can inform the
* gimp of what it does. (ie. installing a procedure database
* procedure).
*/
GimpQueryProc_1 query_proc;
/* called to run a procedure the plug-in installed in the
* procedure database.
*/
GimpRunProc_1 run_proc;
};
typedef struct _GimpPlugInInfo_1 GimpPlugInInfo_1;
#else
/* Define these structures for using gimp-devel-1 */
struct _GimpRGB_2
{
gdouble r, g, b, a;
};
typedef struct _GimpRGB_2 GimpRGB_2;
union _GimpParamData_2
{
gint32 d_int32;
gint16 d_int16;
gint8 d_int8;
gdouble d_float;
gchar *d_string;
gint32 *d_int32array;
gint16 *d_int16array;
gint8 *d_int8array;
gdouble *d_floatarray;
gchar **d_stringarray;
GimpRGB_2 d_color;
GimpParamRegion d_region;
gint32 d_display;
gint32 d_image;
gint32 d_layer;
gint32 d_layer_mask;
gint32 d_channel;
gint32 d_drawable;
gint32 d_selection;
gint32 d_boundary;
gint32 d_path;
gint32 d_unit;
GimpParasite d_parasite;
gint32 d_tattoo;
GimpPDBStatusType d_status;
};
typedef union _GimpParamData_2 GimpParamData_2 ;
struct _GimpParam_2
{
GimpPDBArgType type;
GimpParamData_2 data;
};
typedef struct _GimpParam_2 GimpParam_2;
typedef void (* GimpInitProc_2) (void);
typedef void (* GimpQuitProc_2) (void);
typedef void (* GimpQueryProc_2) (void);
typedef void (* GimpRunProc_2) (const gchar *name,
gint n_params,
const GimpParam_2 *param,
gint *n_return_vals,
GimpParam_2 **return_vals);
struct _GimpPlugInInfo_2
{
/* called when the gimp application initially starts up */
GimpInitProc_2 init_proc;
/* called when the gimp application exits */
GimpQuitProc_2 quit_proc;
/* called by the gimp so that the plug-in can inform the
* gimp of what it does. (ie. installing a procedure database
* procedure).
*/
GimpQueryProc_2 query_proc;
/* called to run a procedure the plug-in installed in the
* procedure database.
*/
GimpRunProc_2 run_proc;
};
typedef struct _GimpPlugInInfo_2 GimpPlugInInfo_2;
#endif // HAVE_GIMP_2
#endif /* GIMP_PLUGIN_H */
|