This file is indexed.

/usr/include/gnome-scan-1.0/gnome-scan-param-specs.h is in libgnomescan-dev 0.6.2-1.1ubuntu4.

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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
/* Gnome Scan - Scan as easy as you print
 * Copyright © 2007  Étienne Bersac <bersace03@laposte.net>
 *
 * Gnome Scan is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * gnome-scan 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
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with gnome-scan.  If not, write to:
 *
 *	the Free Software Foundation, Inc.
 *	51 Franklin Street, Fifth Floor
 *	Boston, MA 02110-1301, USA
 */
 
#ifndef _GNOME_SCAN_PARAM_SPECS_H
#define _GNOME_SCAN_PARAM_SPECS_H

#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <gegl.h>
#include "gnome-scan-utils.h"

G_BEGIN_DECLS

/* COMMON */

/**
 * GS_DEFINE_PARAM:
 * @param_name:	param prefix
 * @ParamName:	Capitalized param name
 * @VALUE_TYPE:	The macro returning the value GType
 *
 * Convenient function that avoid duplicated bug writing GLib boiler
 * plate for #GType registration for a custom #GParamSpec.
 *
 * For example:
 * <programlisting>
 GS_DEFINE_PARAM (foo, Foo,bar, Bar, G_TYPE_INT);
 * </programlisting>
 *
 * expands to:
 *
 * <programlisting>
 GType
 foo_param_bar_get_type () {
 static GType type = 0;
 if (!type) {
 const GParamSpecTypeInfo info = {
 sizeof (FooParamBarSpec),
 0, NULL, G_TYPE_INT,
 NULL, NULL, NULL, NULL };
 type = g_param_type_register_static ("FooParamBarSpec", &info);
 }
 return type;
 }
 * </programlisting>
 *
 * You'll then have to declare a #FooParamSpecBar structure as
 * well as declaring foo_param_bar_get_type() and writing some macros.
 **/
#define GS_DEFINE_PARAM(prefix, Prefix, param_name, ParamName, VALUE_TYPE) \
  static void prefix##_param_##param_name##_value_set_default (GParamSpec *pspec, GValue *value); \
  static gint prefix##_param_##param_name##_values_cmp (GParamSpec *pspec, const GValue *a, const GValue *b); \
  GType									\
  prefix##_param_##param_name##_get_type () {				\
    static GType type = 0;						\
    if (!type) {							\
      const GParamSpecTypeInfo info = {					\
	sizeof (Prefix##ParamSpec##ParamName),				\
	0, NULL, VALUE_TYPE,						\
	NULL,								\
	prefix##_param_##param_name##_value_set_default,		\
	NULL,								\
	prefix##_param_##param_name##_values_cmp };			\
      type = g_param_type_register_static (#Prefix "Param" #ParamName "Spec", &info); \
    }									\
    return type;							\
  }

/* GQuarks */
#define	GS_PARAM_GROUP_QUARK			(gs_group_quark ())
#define	GS_PARAM_DOMAIN_QUARK			(gs_domain_quark ())
#define	GS_PARAM_UNIT_QUARK			    (gs_unit_quark ())
#define GS_PARAM_INDEX_QUARK            (gs_index_quark ())
#define	GS_PARAM_WIDGET_TYPE_QUARK		(gs_widget_type_quark ())
#define	GS_PARAM_FORMATS_QUARK			(gs_formats_quark ())


GQuark gs_group_quark			(void)	G_GNUC_CONST;
GQuark gs_domain_quark			(void)	G_GNUC_CONST;
GQuark gs_unit_quark			(void)	G_GNUC_CONST;
GQuark gs_index_quark			(void)	G_GNUC_CONST;
GQuark gs_widget_type_quark		(void)	G_GNUC_CONST;
GQuark gs_formats_quark			(void)	G_GNUC_CONST;

/**
 * GS_PARAM_GROUP_SCANNER_FRONT:
 *
 * Scanner option group for not every user
 **/
#define	GS_PARAM_GROUP_SCANNER_FRONT	(gs_scanner_front_quark ())

/**
 * GS_PARAM_GROUP_SCANNER_FORMAT:
 *
 * Scanner option group for selecting paper format (paper size,
 * orientation, etc.)
 **/
#define	GS_PARAM_GROUP_FORMAT			(gs_format_quark ())

/**
 * GS_PARAM_GROUP_SCANNER_FRONT:
 *
 * Scanner option group for not every user
 **/
#define	GS_PARAM_GROUP_SINK_FRONT		(gs_sink_front_quark ())

/**
 * GS_PARAM_GROUP_PREVIEW:
 *
 * Scanner option group for preview page. Option that's needs instant
 * view of the effect of selecting them
 **/
#define	GS_PARAM_GROUP_PREVIEW			(gs_preview_quark())

/**
 * GS_PARAM_GROUP_HIDDEN:
 *
 * Scanner option group not shown to user
 **/
#define	GS_PARAM_GROUP_HIDDEN			(gs_hidden_quark())

GQuark gs_scanner_front_quark	(void)	G_GNUC_CONST;
GQuark gs_format_quark			(void)	G_GNUC_CONST;
GQuark gs_sink_front_quark		(void)	G_GNUC_CONST;
GQuark gs_preview_quark			(void)	G_GNUC_CONST;
GQuark gs_hidden_quark			(void)	G_GNUC_CONST;

GnomeScanFormat*
gnome_scan_format_new				(gchar *name,
                                      gchar *domain,
                                      gchar *description,
                                      gchar **mime_types,
                                      gchar **extensions);
GQuark		gs_param_spec_get_group			(GParamSpec *spec);
const gchar*	gs_param_spec_get_group_string		(GParamSpec *spec);
void		gs_param_spec_set_group			(GParamSpec *spec, GQuark group);
void		gs_param_spec_set_group_from_string	(GParamSpec *spec,
                                                    const gchar *group);

void		gs_param_spec_set_domain 		(GParamSpec *spec,
                                              const gchar *domain);
const gchar*	gs_param_spec_get_domain		(GParamSpec *spec);

void		gs_param_spec_set_unit 			(GParamSpec *spec,
                                                GnomeScanUnit unit);
GnomeScanUnit	gs_param_spec_get_unit			(GParamSpec *spec);

void    	gs_param_spec_set_index			(GParamSpec *spec,
                                                guint index);
guint   	gs_param_spec_get_index			(GParamSpec *spec);

void    	gs_param_spec_set_widget_type		(GParamSpec *spec,
                                                  GType type);
GType   	gs_param_spec_get_widget_type		(GParamSpec *spec);

gint		gs_param_spec_cmp_index			(GParamSpec*a,
                                                GParamSpec *b);
gint		gs_param_spec_cmp_name			(GParamSpec*a,
                                               GParamSpec *b);

gint		gs_param_values_cmp			(GParamSpec *pspec,
                                            GValue *a,
                                            GValue *b);


GParamSpec*	gs_param_spec_boolean (const gchar *name,
				       const gchar *nick,
				       const gchar *blurb,
				       GQuark group,
				       gboolean default_value,
				       GParamFlags flags);

GParamSpec*	gs_param_spec_int (const gchar *name,
				   const gchar *nick,
				   const gchar *blurb,
				   GQuark group,
				   gint minimum,
				   gint maximum,
				   gint default_value,
				   GParamFlags flags);

GParamSpec*	gs_param_spec_double (const gchar *name,
				      const gchar *nick,
				      const gchar *blurb,
				      GQuark group,
				      gdouble minimum,
				      gdouble maximum,
				      gdouble default_value,
				      GParamFlags flags);

GParamSpec*	gs_param_spec_string (const gchar *name,
				      const gchar *nick,
				      const gchar *blurb,
				      GQuark group,
				      const gchar* default_value,
				      GParamFlags flags);

GParamSpec*	gs_param_spec_pointer (const gchar *name,
				       const gchar *nick,
				       const gchar *blurb,
				       GQuark group,
				       GType widget,
				       GParamFlags flags);

/* RANGE */
#define GS_TYPE_PARAM_RANGE				(gs_param_range_get_type ())
#define GS_PARAM_SPEC_RANGE(p)			(G_TYPE_CHECK_INSTANCE_CAST ((p), GS_TYPE_PARAM_RANGE, GSParamSpecRange))
#define GS_IS_PARAM_SPEC_RANGE(p)		(G_TYPE_CHECK_INSTANCE_TYPE ((p), GS_TYPE_PARAM_RANGE))


typedef struct _GSParamSpecRange GSParamSpecRange;
/**
 * GSParamSpecRange:
 *
 * This spec is used to select existing files.
 */
struct _GSParamSpecRange
{
  /*< private >*/
  GParamSpec	parent_instance;
  /*< public >*/
  GValue *minimum;
  GValue *maximum;
  GValue *step;
  GValue *default_value;
};

GType		gs_param_range_get_type	(void)	G_GNUC_CONST;
GParamSpec*	gs_param_spec_range		(const gchar *name,
						 const gchar *nick,
						 const gchar *blurb,
						 GQuark group,
						 GValue *minimum,
						 GValue *maximum,
						 GValue *step,
						 GValue *default_value,
						 GParamFlags flags);


/* ENUM */
#define GS_TYPE_PARAM_ENUM				(gs_param_enum_get_type ())
#define GS_PARAM_SPEC_ENUM(p)			(G_TYPE_CHECK_INSTANCE_CAST ((p), GS_TYPE_PARAM_ENUM, GSParamSpecEnum))
#define GS_IS_PARAM_SPEC_ENUM(p)		(G_TYPE_CHECK_INSTANCE_TYPE ((p), GS_TYPE_PARAM_ENUM))


typedef struct _GSParamSpecEnum GSParamSpecEnum;
/**
 * GSParamSpecEnum:
 *
 * This spec is used to select existing files.
 */
struct _GSParamSpecEnum
{
  /*< private >*/
  GParamSpec	parent_instance;
	
  /*< public >*/
  GValueArray *values;
  GValue *default_value;
};

GType		gs_param_enum_get_type	(void)	G_GNUC_CONST;
GParamSpec*	gs_param_spec_enum		(const gchar *name,
						 const gchar *nick,
						 const gchar *blurb,
						 GQuark group,
						 GValueArray *values,
						 GValue *default_value,
						 GParamFlags flags);



/* PAPER SIZE */
#define GS_TYPE_PARAM_PAPER_SIZE			(gs_param_paper_size_get_type ())
#define GS_PARAM_SPEC_PAPER_SIZE(p)			(G_TYPE_CHECK_INSTANCE_CAST ((p), GS_TYPE_PARAM_PAPER_SIZE, GSParamSpecPaperSize))
#define GS_IS_PARAM_SPEC_PAPER_SIZE(p)		(G_TYPE_CHECK_INSTANCE_TYPE ((p), GS_TYPE_PARAM_PAPER_SIZE))


typedef struct _GSParamSpecPaperSize GSParamSpecPaperSize;
/**
 * GSParamSpecPaperSize:
 *
 */
struct _GSParamSpecPaperSize
{
  /*< private >*/
  GParamSpec		parent_instance;
	
  /*< public >*/
  GtkPaperSize*			default_ps;
  GSList*			enumeration;
};

GType		gs_param_paper_size_get_type	(void)	G_GNUC_CONST;
GParamSpec*	gs_param_spec_paper_size		(const gchar *name,
							 const gchar *nick,
							 const gchar *blurb,
							 GQuark group,
							 GtkPaperSize* default_ps,
							 GSList* enumeration,
							 GParamFlags flags);

void		gs_param_paper_size_get_extent		(GSParamSpecPaperSize *ps,
							 GnomeScanUnit unit,
							 gdouble *width,
							 gdouble *height);

/* PAGE ORIENTATION */
#define GS_TYPE_PARAM_PAGE_ORIENTATION			(gs_param_page_orientation_get_type ())
#define GS_PARAM_SPEC_PAGE_ORIENTATION(p)			(G_TYPE_CHECK_INSTANCE_CAST ((p), GS_TYPE_PARAM_PAGE_ORIENTATION, GSParamSpecPageOrientation))
#define GS_IS_PARAM_SPEC_PAGE_ORIENTATION(p)		(G_TYPE_CHECK_INSTANCE_TYPE ((p), GS_TYPE_PARAM_PAGE_ORIENTATION))


typedef struct _GSParamSpecPageOrientation GSParamSpecPageOrientation;
/**
 * GSParamSpecPageOrientation:
 *
 */
struct _GSParamSpecPageOrientation
{
  /*< private >*/
  GParamSpec		parent_instance;
	
  /*< public >*/
  guint			default_value;
};

GType		gs_param_page_orientation_get_type	(void)	G_GNUC_CONST;
GParamSpec*	gs_param_spec_page_orientation		(const gchar *name,
							 const gchar *nick,
							 const gchar *blurb,
							 GQuark group,
							 guint default_value,
							 GParamFlags flags);




G_END_DECLS

#endif /* _GNOME_SCAN_PARAM_SPECS_H */