Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals  

src/main/vars.h

Go to the documentation of this file.
00001 /*
00002  * "$Id: vars.h,v 1.16 2004/03/28 21:17:38 rlk Exp $"
00003  *
00004  *   Print plug-in driver utility functions for the GIMP.
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 
00024 
00025 #ifndef GIMP_PRINT_INTERNAL_VARS_H
00026 #define GIMP_PRINT_INTERNAL_VARS_H
00027 
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif
00031 
00032 #include <sys/types.h>
00033 #include "color.h"
00034 
00035 typedef void *(*stpi_copy_data_func_t)(void *);
00036 typedef void (*stpi_free_data_func_t)(void *);
00037 
00038 typedef enum
00039 {
00040   PARAMETER_BAD,
00041   PARAMETER_OK,
00042   PARAMETER_INACTIVE
00043 } stpi_parameter_verify_t;
00044 
00045 extern void stpi_allocate_component_data(stp_vars_t v,
00046                                          const char *name,
00047                                          stpi_copy_data_func_t copyfunc,
00048                                          stpi_free_data_func_t freefunc,
00049                                          void *data);
00050 extern void stpi_destroy_component_data(stp_vars_t v, const char *name);
00051 extern void *stpi_get_component_data(stp_const_vars_t v, const char *name);
00052 
00053 extern stpi_parameter_verify_t stpi_verify_parameter(stp_const_vars_t v,
00054                                                      const char *parameter,
00055                                                      int quiet);
00056 extern int stpi_get_verified(stp_const_vars_t);
00057 extern void stpi_set_verified(stp_vars_t, int value);
00058 
00059 extern void stpi_copy_options(stp_vars_t vd, stp_const_vars_t vs);
00060 
00061 extern void
00062 stpi_fill_parameter_settings(stp_parameter_t *desc,
00063                              const stp_parameter_t *param);
00064 
00065 #endif /* GIMP_PRINT_INTERNAL_VARS_H */
00066 /*
00067  * End of "$Id: vars.h,v 1.16 2004/03/28 21:17:38 rlk Exp $".
00068  */

Generated on Sat Apr 17 15:42:11 2004 for libgimpprint API Reference by doxygen1.2.17