00001 /* 00002 * "$Id: printers.h,v 1.4 2004/04/11 22:29:57 rlk Exp $" 00003 * 00004 * libgimpprint printer functions. 00005 * 00006 * Copyright 1997-2000 Michael Sweet (mike@easysw.com) and 00007 * Robert Krawitz (rlk@alum.mit.edu) 00008 * 00009 * This program is free software; you can redistribute it and/or modify it 00010 * under the terms of the GNU General Public License as published by the Free 00011 * Software Foundation; either version 2 of the License, or (at your option) 00012 * any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, but 00015 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00016 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00017 * for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 */ 00023 00029 #ifndef __GIMP_PRINT_PRINTERS_H__ 00030 #define __GIMP_PRINT_PRINTERS_H__ 00031 00032 #ifdef __cplusplus 00033 extern "C" { 00034 #endif 00035 00036 #include <gimp-print/vars.h> 00037 00049 typedef void *stp_printer_t; 00051 typedef const void *stp_const_printer_t; 00052 00057 extern int stp_printer_model_count(void); 00058 00066 extern stp_const_printer_t stp_get_printer_by_index(int idx); 00067 00074 extern stp_const_printer_t stp_get_printer_by_long_name(const char *long_name); 00075 00082 extern stp_const_printer_t stp_get_printer_by_driver(const char *driver); 00083 00090 extern stp_const_printer_t stp_get_printer(stp_const_vars_t v); 00091 00098 extern int stp_get_printer_index_by_driver(const char *driver); 00099 00105 extern const char *stp_printer_get_long_name(stp_const_printer_t p); 00106 00112 extern const char *stp_printer_get_driver(stp_const_printer_t p); 00113 00121 extern const char *stp_printer_get_family(stp_const_printer_t p); 00122 00128 extern const char *stp_printer_get_manufacturer(stp_const_printer_t p); 00129 00138 extern int stp_printer_get_model(stp_const_printer_t p); 00139 00147 extern stp_const_vars_t stp_printer_get_defaults(stp_const_printer_t p); 00148 00155 extern void stp_set_printer_defaults(stp_vars_t v, stp_const_printer_t p); 00156 00157 00167 extern int stp_print(stp_const_vars_t v, stp_image_t *image); 00168 00177 extern int stp_start_job(stp_const_vars_t v, stp_image_t *image); 00178 00185 extern int stp_end_job(stp_const_vars_t v, stp_image_t *image); 00186 00189 #ifdef __cplusplus 00190 } 00191 #endif 00192 00193 #endif /* __GIMP_PRINT_PRINTERS_H__ */ 00194 /* 00195 * End of "$Id: printers.h,v 1.4 2004/04/11 22:29:57 rlk Exp $". 00196 */