| 1 | /* |
| 2 | * |
| 3 | * Copyright 2003 Robert Krawitz ([email protected]) |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify it |
| 6 | * under the terms of the GNU General Public License as published by the Free |
| 7 | * Software Foundation; either version 2 of the License, or (at your option) |
| 8 | * any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 12 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 13 | * for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #ifndef GUTENPRINT_INTERNAL_GENERIC_OPTIONS_H |
| 20 | #define GUTENPRINT_INTERNAL_GENERIC_OPTIONS_H |
| 21 | |
| 22 | typedef struct |
| 23 | { |
| 24 | const char *name; |
| 25 | const char *text; |
| 26 | int quality_level; /* Between 0 and 10 */ |
| 27 | } stpi_quality_t; |
| 28 | |
| 29 | typedef struct |
| 30 | { |
| 31 | const char *name; |
| 32 | const char *text; |
| 33 | } stpi_image_type_t; |
| 34 | |
| 35 | typedef struct |
| 36 | { |
| 37 | const char *name; |
| 38 | const char *text; |
| 39 | } stpi_job_mode_t; |
| 40 | |
| 41 | extern int stpi_get_qualities_count(void); |
| 42 | |
| 43 | extern const stpi_quality_t *stpi_get_quality_by_index(int idx); |
| 44 | |
| 45 | extern const stpi_quality_t *stpi_get_quality_by_name(const char *quality); |
| 46 | |
| 47 | extern int stpi_get_image_types_count(void); |
| 48 | |
| 49 | extern const stpi_image_type_t *stpi_get_image_type_by_index(int idx); |
| 50 | |
| 51 | extern const stpi_image_type_t *stpi_get_image_type_by_name(const char *image_type); |
| 52 | |
| 53 | extern int stpi_get_job_modes_count(void); |
| 54 | |
| 55 | extern const stpi_job_mode_t *stpi_get_job_mode_by_index(int idx); |
| 56 | |
| 57 | extern const stpi_job_mode_t *stpi_get_job_mode_by_name(const char *job_mode); |
| 58 | |
| 59 | extern stp_parameter_list_t stp_list_generic_parameters(const stp_vars_t *v); |
| 60 | |
| 61 | extern void stpi_describe_generic_parameter(const stp_vars_t *v, |
| 62 | const char *name, |
| 63 | stp_parameter_t *description); |
| 64 | |
| 65 | #endif /* GUTENPRINT_INTERNAL_GENERIC_OPTIONS_H */ |