]>
Commit | Line | Data |
---|---|---|
a603edef MS |
1 | /* |
2 | * "$Id$" | |
3 | * | |
4 | * Private PPD definitions for the Common UNIX Printing System (CUPS). | |
5 | * | |
6 | * Copyright 2007-2008 by Apple Inc. | |
7 | * Copyright 1997-2007 by Easy Software Products, all rights reserved. | |
8 | * | |
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/". | |
14 | * | |
15 | * PostScript is a trademark of Adobe Systems, Inc. | |
16 | * | |
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 | |
22 | * agreement. | |
23 | * | |
24 | * This file is subject to the Apple OS-Developed Software exception. | |
25 | */ | |
26 | ||
27 | #ifndef _CUPS_PPD_PRIVATE_H_ | |
28 | # define _CUPS_PPD_PRIVATE_H_ | |
29 | ||
30 | /* | |
31 | * Include necessary headers... | |
32 | */ | |
33 | ||
5eb9da71 | 34 | # include "cups.h" |
a603edef MS |
35 | |
36 | ||
37 | /* | |
38 | * C++ magic... | |
39 | */ | |
40 | ||
41 | # ifdef __cplusplus | |
42 | extern "C" { | |
43 | # endif /* __cplusplus */ | |
44 | ||
45 | ||
66ab9486 MS |
46 | /* |
47 | * Structures... | |
48 | */ | |
49 | ||
50 | typedef struct _ppd_cups_uiconst_s /**** Constraint from cupsUIConstraints ****/ | |
51 | { | |
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; | |
56 | ||
57 | typedef struct _ppd_cups_uiconsts_s /**** cupsUIConstraints ****/ | |
58 | { | |
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; | |
64 | ||
65 | ||
66 | /* | |
67 | * Prototypes... | |
68 | */ | |
69 | ||
a603edef | 70 | extern void _ppdFreeLanguages(cups_array_t *languages); |
5eb9da71 MS |
71 | extern int _ppdGet1284Values(const char *device_id, |
72 | cups_option_t **values); | |
73 | extern cups_encoding_t _ppdGetEncoding(const char *name); | |
a603edef MS |
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); | |
5eb9da71 MS |
78 | extern char *_ppdNormalizeMakeAndModel(const char *make_and_model, |
79 | char *buffer, | |
80 | size_t bufsize); | |
66ab9486 MS |
81 | extern int _ppdParseOptions(const char *s, int num_options, |
82 | cups_option_t **options); | |
a603edef MS |
83 | |
84 | ||
85 | /* | |
86 | * C++ magic... | |
87 | */ | |
88 | ||
89 | # ifdef __cplusplus | |
90 | } | |
91 | # endif /* __cplusplus */ | |
92 | #endif /* !_CUPS_PPD_PRIVATE_H_ */ | |
93 | ||
94 | /* | |
95 | * End of "$Id$". | |
96 | */ |