1/* 2 * "$Id: generic-options.h,v 1.5 2004/09/17 18:38:20 rleigh Exp $" 3 * 4 * Copyright 2003 Robert Krawitz (rlk@alum.mit.edu) 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the Free 8 * Software Foundation; either version 2 of the License, or (at your option) 9 * any later version. 10 * 11 * This program is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 */ 20 21#ifndef GUTENPRINT_INTERNAL_GENERIC_OPTIONS_H 22#define GUTENPRINT_INTERNAL_GENERIC_OPTIONS_H 23 24typedef struct 25{ 26 const char *name; 27 const char *text; 28 int quality_level; /* Between 0 and 10 */ 29} stpi_quality_t; 30 31typedef struct 32{ 33 const char *name; 34 const char *text; 35} stpi_image_type_t; 36 37typedef struct 38{ 39 const char *name; 40 const char *text; 41} stpi_job_mode_t; 42 43extern int stpi_get_qualities_count(void); 44 45extern const stpi_quality_t *stpi_get_quality_by_index(int idx); 46 47extern const stpi_quality_t *stpi_get_quality_by_name(const char *quality); 48 49extern int stpi_get_image_types_count(void); 50 51extern const stpi_image_type_t *stpi_get_image_type_by_index(int idx); 52 53extern const stpi_image_type_t *stpi_get_image_type_by_name(const char *image_type); 54 55extern int stpi_get_job_modes_count(void); 56 57extern const stpi_job_mode_t *stpi_get_job_mode_by_index(int idx); 58 59extern const stpi_job_mode_t *stpi_get_job_mode_by_name(const char *job_mode); 60 61extern stp_parameter_list_t stp_list_generic_parameters(const stp_vars_t *v); 62 63extern void stpi_describe_generic_parameter(const stp_vars_t *v, 64 const char *name, 65 stp_parameter_t *description); 66 67#endif /* GUTENPRINT_INTERNAL_GENERIC_OPTIONS_H */ 68