00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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
00066
00067
00068