2 |
- |
1 |
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
|
|
|
2 |
|
|
|
3 |
This software is provided AS-IS with no warranty, either express or
|
|
|
4 |
implied.
|
|
|
5 |
|
|
|
6 |
This software is distributed under license and may not be copied,
|
|
|
7 |
modified or distributed except as expressly authorized under the terms
|
|
|
8 |
of the license contained in the file LICENSE in this distribution.
|
|
|
9 |
|
|
|
10 |
For more information about licensing, please refer to
|
|
|
11 |
http://www.ghostscript.com/licensing/. For information on
|
|
|
12 |
commercial licensing, go to http://www.artifex.com/licensing/ or
|
|
|
13 |
contact Artifex Software, Inc., 101 Lucas Valley Road #110,
|
|
|
14 |
San Rafael, CA 94903, U.S.A., +1(415)492-9861.
|
|
|
15 |
*/
|
|
|
16 |
|
|
|
17 |
/* $Id: gsparamx.h,v 1.6 2002/06/16 08:45:42 lpd Exp $ */
|
|
|
18 |
/* Interface to extended parameter dictionary utilities */
|
|
|
19 |
|
|
|
20 |
#ifndef gsparamx_INCLUDED
|
|
|
21 |
# define gsparamx_INCLUDED
|
|
|
22 |
|
|
|
23 |
/* Test whether a parameter's string value is equal to a C string. */
|
|
|
24 |
bool gs_param_string_eq(const gs_param_string *pcs, const char *str);
|
|
|
25 |
|
|
|
26 |
/*
|
|
|
27 |
* Put parameters of various types. These propagate ecode, presumably
|
|
|
28 |
* the previous accumulated error code.
|
|
|
29 |
*/
|
|
|
30 |
int param_put_enum(gs_param_list * plist, gs_param_name param_name,
|
|
|
31 |
int *pvalue, const char *const pnames[], int ecode);
|
|
|
32 |
int param_put_bool(gs_param_list * plist, gs_param_name param_name,
|
|
|
33 |
bool * pval, int ecode);
|
|
|
34 |
int param_put_int(gs_param_list * plist, gs_param_name param_name,
|
|
|
35 |
int * pval, int ecode);
|
|
|
36 |
int param_put_long(gs_param_list * plist, gs_param_name param_name,
|
|
|
37 |
long * pval, int ecode);
|
|
|
38 |
|
|
|
39 |
/* Copy one parameter list to another, recursively if necessary. */
|
|
|
40 |
int param_list_copy(gs_param_list *plto, gs_param_list *plfrom);
|
|
|
41 |
|
|
|
42 |
#endif /* gsparamx_INCLUDED */
|