]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups/ppd-private.h
4 * Private PPD definitions for the Common UNIX Printing System (CUPS).
6 * Copyright 2007-2008 by Apple Inc.
7 * Copyright 1997-2007 by Easy Software Products, all rights reserved.
9 * These coded instructions, statements, and computer programs are the
10 * property of Apple Inc. and are protected by Federal copyright
11 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 * which should have been included with this file. If this file is
13 * file is missing or damaged, see the license at "http://www.cups.org/".
15 * PostScript is a trademark of Adobe Systems, Inc.
17 * This code and any derivative of it may be used and distributed
18 * freely under the terms of the GNU General Public License when
19 * used with GNU Ghostscript or its derivatives. Use of the code
20 * (or any derivative of it) with software other than GNU
21 * GhostScript (or its derivatives) is governed by the CUPS license
24 * This file is subject to the Apple OS-Developed Software exception.
27 #ifndef _CUPS_PPD_PRIVATE_H_
28 # define _CUPS_PPD_PRIVATE_H_
31 * Include necessary headers...
43 # endif /* __cplusplus */
50 typedef struct _ppd_cups_uiconst_s
/**** Constraint from cupsUIConstraints ****/
52 ppd_option_t
*option
; /* Constrained option */
53 ppd_choice_t
*choice
; /* Constrained choice or @code NULL@ */
54 int installable
; /* Installable option? */
55 } _ppd_cups_uiconst_t
;
57 typedef struct _ppd_cups_uiconsts_s
/**** cupsUIConstraints ****/
59 char resolver
[PPD_MAX_NAME
]; /* Resolver name */
60 int installable
, /* Constrained against any installable options? */
61 num_constraints
; /* Number of constraints */
62 _ppd_cups_uiconst_t
*constraints
; /* Constraints */
63 } _ppd_cups_uiconsts_t
;
70 extern void _ppdFreeLanguages(cups_array_t
*languages
);
71 extern int _ppdGet1284Values(const char *device_id
,
72 cups_option_t
**values
);
73 extern cups_encoding_t
_ppdGetEncoding(const char *name
);
74 extern cups_array_t
*_ppdGetLanguages(ppd_file_t
*ppd
);
75 extern unsigned _ppdHashName(const char *name
);
76 extern ppd_attr_t
*_ppdLocalizedAttr(ppd_file_t
*ppd
, const char *keyword
,
77 const char *spec
, const char *ll_CC
);
78 extern char *_ppdNormalizeMakeAndModel(const char *make_and_model
,
81 extern int _ppdParseOptions(const char *s
, int num_options
,
82 cups_option_t
**options
);
91 # endif /* __cplusplus */
92 #endif /* !_CUPS_PPD_PRIVATE_H_ */