summaryrefslogtreecommitdiff
path: root/src/main/generic-options.h
blob: 6149fbbf816ccec7f29a2e37bb460d159549e485 (plain)
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
/*
 *
 *   Copyright 2003 Robert Krawitz (rlk@alum.mit.edu)
 *
 *   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, see <https://www.gnu.org/licenses/>.
 */

#ifndef GUTENPRINT_INTERNAL_GENERIC_OPTIONS_H
#define GUTENPRINT_INTERNAL_GENERIC_OPTIONS_H

typedef struct
{
  const char *name;
  const char *text;
  int quality_level;		/* Between 0 and 10 */
} stpi_quality_t;

typedef struct
{
  const char *name;
  const char *text;
} stpi_image_type_t;

typedef struct
{
  const char *name;
  const char *text;
} stpi_job_mode_t;

extern int stpi_get_qualities_count(void);

extern const stpi_quality_t *stpi_get_quality_by_index(int idx);

extern const stpi_quality_t *stpi_get_quality_by_name(const char *quality);

extern int stpi_get_image_types_count(void);

extern const stpi_image_type_t *stpi_get_image_type_by_index(int idx);

extern const stpi_image_type_t *stpi_get_image_type_by_name(const char *image_type);

extern int stpi_get_job_modes_count(void);

extern const stpi_job_mode_t *stpi_get_job_mode_by_index(int idx);

extern const stpi_job_mode_t *stpi_get_job_mode_by_name(const char *job_mode);

extern stp_parameter_list_t stp_list_generic_parameters(const stp_vars_t *v);

extern void stpi_describe_generic_parameter(const stp_vars_t *v,
					   const char *name,
					   stp_parameter_t *description);

#endif /* GUTENPRINT_INTERNAL_GENERIC_OPTIONS_H */