]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
f2d18633 | 2 | * "$Id$" |
ef416fc2 | 3 | * |
54afec33 | 4 | * PostScript Printer Description definitions for CUPS. |
ef416fc2 | 5 | * |
a2326b5b | 6 | * THESE APIS ARE DEPRECATED. TO COMPILE WITHOUT WARNINGS ADD |
9c80ffa2 | 7 | * -D_PPD_DEPRECATED="" TO YOUR COMPILE OPTIONS. THIS HEADER AND THESE |
a2326b5b MS |
8 | * FUNCTIONS WILL BE REMOVED IN A FUTURE RELEASE OF CUPS. |
9 | * | |
e666fe5e | 10 | * Copyright 2007-2013 by Apple Inc. |
b94498cf | 11 | * Copyright 1997-2007 by Easy Software Products, all rights reserved. |
ef416fc2 | 12 | * |
13 | * These coded instructions, statements, and computer programs are the | |
bc44d920 | 14 | * property of Apple Inc. and are protected by Federal copyright |
15 | * law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
16 | * which should have been included with this file. If this file is | |
17 | * file is missing or damaged, see the license at "http://www.cups.org/". | |
ef416fc2 | 18 | * |
19 | * PostScript is a trademark of Adobe Systems, Inc. | |
20 | * | |
21 | * This code and any derivative of it may be used and distributed | |
22 | * freely under the terms of the GNU General Public License when | |
23 | * used with GNU Ghostscript or its derivatives. Use of the code | |
24 | * (or any derivative of it) with software other than GNU | |
25 | * GhostScript (or its derivatives) is governed by the CUPS license | |
26 | * agreement. | |
27 | * | |
28 | * This file is subject to the Apple OS-Developed Software exception. | |
29 | */ | |
30 | ||
31 | #ifndef _CUPS_PPD_H_ | |
32 | # define _CUPS_PPD_H_ | |
33 | ||
34 | /* | |
35 | * Include necessary headers... | |
36 | */ | |
37 | ||
38 | # include <stdio.h> | |
aaf19ab0 | 39 | # include "cups.h" |
fa73b229 | 40 | # include "array.h" |
ef416fc2 | 41 | # include "file.h" |
42 | ||
43 | ||
44 | /* | |
45 | * C++ magic... | |
46 | */ | |
47 | ||
48 | # ifdef __cplusplus | |
49 | extern "C" { | |
50 | # endif /* __cplusplus */ | |
51 | ||
52 | ||
a2326b5b MS |
53 | /* |
54 | * Define _PPD_DEPRECATED to silence the warnings about PPD functions being | |
55 | * deprecated... | |
56 | */ | |
57 | ||
58 | # ifndef _PPD_DEPRECATED | |
e666fe5e | 59 | # define _PPD_DEPRECATED _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.") |
a2326b5b MS |
60 | # endif /* !_PPD_DEPRECATED */ |
61 | ||
62 | ||
ef416fc2 | 63 | /* |
64 | * PPD version... | |
65 | */ | |
66 | ||
fa73b229 | 67 | # define PPD_VERSION 4.3 /* Kept in sync with Adobe version number */ |
ef416fc2 | 68 | |
69 | ||
70 | /* | |
71 | * PPD size limits (defined in Adobe spec) | |
72 | */ | |
73 | ||
fa73b229 | 74 | # define PPD_MAX_NAME 41 /* Maximum size of name + 1 for nul */ |
75 | # define PPD_MAX_TEXT 81 /* Maximum size of text + 1 for nul */ | |
76 | # define PPD_MAX_LINE 256 /* Maximum size of line + 1 for nul */ | |
ef416fc2 | 77 | |
78 | ||
79 | /* | |
80 | * Types and structures... | |
81 | */ | |
82 | ||
fa73b229 | 83 | typedef enum ppd_ui_e /**** UI Types ****/ |
ef416fc2 | 84 | { |
fa73b229 | 85 | PPD_UI_BOOLEAN, /* True or False option */ |
86 | PPD_UI_PICKONE, /* Pick one from a list */ | |
87 | PPD_UI_PICKMANY /* Pick zero or more from a list */ | |
ef416fc2 | 88 | } ppd_ui_t; |
89 | ||
fa73b229 | 90 | typedef enum ppd_section_e /**** Order dependency sections ****/ |
ef416fc2 | 91 | { |
fa73b229 | 92 | PPD_ORDER_ANY, /* Option code can be anywhere in the file */ |
93 | PPD_ORDER_DOCUMENT, /* ... must be in the DocumentSetup section */ | |
94 | PPD_ORDER_EXIT, /* ... must be sent prior to the document */ | |
95 | PPD_ORDER_JCL, /* ... must be sent as a JCL command */ | |
96 | PPD_ORDER_PAGE, /* ... must be in the PageSetup section */ | |
97 | PPD_ORDER_PROLOG /* ... must be in the Prolog section */ | |
ef416fc2 | 98 | } ppd_section_t; |
99 | ||
fa73b229 | 100 | typedef enum ppd_cs_e /**** Colorspaces ****/ |
ef416fc2 | 101 | { |
fa73b229 | 102 | PPD_CS_CMYK = -4, /* CMYK colorspace */ |
103 | PPD_CS_CMY, /* CMY colorspace */ | |
104 | PPD_CS_GRAY = 1, /* Grayscale colorspace */ | |
105 | PPD_CS_RGB = 3, /* RGB colorspace */ | |
106 | PPD_CS_RGBK, /* RGBK (K = gray) colorspace */ | |
107 | PPD_CS_N /* DeviceN colorspace */ | |
ef416fc2 | 108 | } ppd_cs_t; |
109 | ||
f3c17241 | 110 | typedef enum ppd_status_e /**** Status Codes @since CUPS 1.1.19/OS X 10.3@ ****/ |
ef416fc2 | 111 | { |
fa73b229 | 112 | PPD_OK = 0, /* OK */ |
113 | PPD_FILE_OPEN_ERROR, /* Unable to open PPD file */ | |
114 | PPD_NULL_FILE, /* NULL PPD file pointer */ | |
115 | PPD_ALLOC_ERROR, /* Memory allocation error */ | |
116 | PPD_MISSING_PPDADOBE4, /* Missing PPD-Adobe-4.x header */ | |
117 | PPD_MISSING_VALUE, /* Missing value string */ | |
118 | PPD_INTERNAL_ERROR, /* Internal error */ | |
119 | PPD_BAD_OPEN_GROUP, /* Bad OpenGroup */ | |
120 | PPD_NESTED_OPEN_GROUP, /* OpenGroup without a CloseGroup first */ | |
121 | PPD_BAD_OPEN_UI, /* Bad OpenUI/JCLOpenUI */ | |
122 | PPD_NESTED_OPEN_UI, /* OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first */ | |
123 | PPD_BAD_ORDER_DEPENDENCY, /* Bad OrderDependency */ | |
124 | PPD_BAD_UI_CONSTRAINTS, /* Bad UIConstraints */ | |
125 | PPD_MISSING_ASTERISK, /* Missing asterisk in column 0 */ | |
126 | PPD_LINE_TOO_LONG, /* Line longer than 255 chars */ | |
127 | PPD_ILLEGAL_CHARACTER, /* Illegal control character */ | |
128 | PPD_ILLEGAL_MAIN_KEYWORD, /* Illegal main keyword string */ | |
129 | PPD_ILLEGAL_OPTION_KEYWORD, /* Illegal option keyword string */ | |
130 | PPD_ILLEGAL_TRANSLATION, /* Illegal translation string */ | |
131 | PPD_ILLEGAL_WHITESPACE, /* Illegal whitespace character */ | |
ef55b745 MS |
132 | PPD_BAD_CUSTOM_PARAM, /* Bad custom parameter */ |
133 | PPD_MISSING_OPTION_KEYWORD, /* Missing option keyword */ | |
134 | PPD_BAD_VALUE, /* Bad value string */ | |
0268488e | 135 | PPD_MISSING_CLOSE_GROUP, /* Missing CloseGroup */ |
ef55b745 | 136 | PPD_MAX_STATUS /* @private@ */ |
ef416fc2 | 137 | } ppd_status_t; |
138 | ||
f3c17241 | 139 | enum ppd_conform_e /**** Conformance Levels @since CUPS 1.1.19/OS X 10.3@ ****/ |
ef416fc2 | 140 | { |
fa73b229 | 141 | PPD_CONFORM_RELAXED, /* Relax whitespace and control char */ |
142 | PPD_CONFORM_STRICT /* Require strict conformance */ | |
5a738aea MS |
143 | }; |
144 | ||
145 | typedef enum ppd_conform_e ppd_conform_t; | |
f3c17241 | 146 | /**** Conformance Levels @since CUPS 1.1.19/OS X 10.3@ ****/ |
ef416fc2 | 147 | |
f3c17241 | 148 | typedef struct ppd_attr_s /**** PPD Attribute Structure @since CUPS 1.1.19/OS X 10.3@ ****/ |
ef416fc2 | 149 | { |
fa73b229 | 150 | char name[PPD_MAX_NAME]; /* Name of attribute (cupsXYZ) */ |
151 | char spec[PPD_MAX_NAME]; /* Specifier string, if any */ | |
152 | char text[PPD_MAX_TEXT]; /* Human-readable text, if any */ | |
153 | char *value; /* Value string */ | |
ef416fc2 | 154 | } ppd_attr_t; |
155 | ||
fa73b229 | 156 | typedef struct ppd_option_s ppd_option_t; |
157 | /**** Options ****/ | |
ef416fc2 | 158 | |
fa73b229 | 159 | typedef struct ppd_choice_s /**** Option choices ****/ |
ef416fc2 | 160 | { |
fa73b229 | 161 | char marked; /* 0 if not selected, 1 otherwise */ |
162 | char choice[PPD_MAX_NAME]; /* Computer-readable option name */ | |
163 | char text[PPD_MAX_TEXT]; /* Human-readable option name */ | |
164 | char *code; /* Code to send for this option */ | |
165 | ppd_option_t *option; /* Pointer to parent option structure */ | |
ef416fc2 | 166 | } ppd_choice_t; |
167 | ||
fa73b229 | 168 | struct ppd_option_s /**** Options ****/ |
ef416fc2 | 169 | { |
fa73b229 | 170 | char conflicted; /* 0 if no conflicts exist, 1 otherwise */ |
171 | char keyword[PPD_MAX_NAME]; /* Option keyword name ("PageSize", etc.) */ | |
172 | char defchoice[PPD_MAX_NAME];/* Default option choice */ | |
173 | char text[PPD_MAX_TEXT]; /* Human-readable text */ | |
174 | ppd_ui_t ui; /* Type of UI option */ | |
175 | ppd_section_t section; /* Section for command */ | |
176 | float order; /* Order number */ | |
177 | int num_choices; /* Number of option choices */ | |
178 | ppd_choice_t *choices; /* Option choices */ | |
ef416fc2 | 179 | }; |
180 | ||
fa73b229 | 181 | typedef struct ppd_group_s /**** Groups ****/ |
ef416fc2 | 182 | { |
183 | /**** Group text strings are limited to 39 chars + nul in order to | |
184 | **** preserve binary compatibility and allow applications to get | |
185 | **** the group's keyword name. | |
186 | ****/ | |
187 | char text[PPD_MAX_TEXT - PPD_MAX_NAME]; | |
fa73b229 | 188 | /* Human-readable group name */ |
f3c17241 | 189 | char name[PPD_MAX_NAME]; /* Group name @since CUPS 1.1.18/OS X 10.3@ */ |
fa73b229 | 190 | int num_options; /* Number of options */ |
191 | ppd_option_t *options; /* Options */ | |
192 | int num_subgroups; /* Number of sub-groups */ | |
193 | struct ppd_group_s *subgroups; /* Sub-groups (max depth = 1) */ | |
ef416fc2 | 194 | } ppd_group_t; |
195 | ||
5a738aea | 196 | typedef struct ppd_const_s /**** Constraints ****/ |
ef416fc2 | 197 | { |
fa73b229 | 198 | char option1[PPD_MAX_NAME]; /* First keyword */ |
199 | char choice1[PPD_MAX_NAME]; /* First option/choice (blank for all) */ | |
200 | char option2[PPD_MAX_NAME]; /* Second keyword */ | |
201 | char choice2[PPD_MAX_NAME]; /* Second option/choice (blank for all) */ | |
ef416fc2 | 202 | } ppd_const_t; |
203 | ||
fa73b229 | 204 | typedef struct ppd_size_s /**** Page Sizes ****/ |
ef416fc2 | 205 | { |
fa73b229 | 206 | int marked; /* Page size selected? */ |
207 | char name[PPD_MAX_NAME]; /* Media size option */ | |
208 | float width; /* Width of media in points */ | |
209 | float length; /* Length of media in points */ | |
210 | float left; /* Left printable margin in points */ | |
211 | float bottom; /* Bottom printable margin in points */ | |
212 | float right; /* Right printable margin in points */ | |
213 | float top; /* Top printable margin in points */ | |
ef416fc2 | 214 | } ppd_size_t; |
215 | ||
fa73b229 | 216 | typedef struct ppd_emul_s /**** Emulators ****/ |
ef416fc2 | 217 | { |
fa73b229 | 218 | char name[PPD_MAX_NAME]; /* Emulator name */ |
219 | char *start; /* Code to switch to this emulation */ | |
220 | char *stop; /* Code to stop this emulation */ | |
ef416fc2 | 221 | } ppd_emul_t; |
222 | ||
fa73b229 | 223 | typedef struct ppd_profile_s /**** sRGB Color Profiles ****/ |
ef416fc2 | 224 | { |
225 | char resolution[PPD_MAX_NAME]; | |
fa73b229 | 226 | /* Resolution or "-" */ |
ef416fc2 | 227 | char media_type[PPD_MAX_NAME]; |
fa73b229 | 228 | /* Media type or "-" */ |
229 | float density; /* Ink density to use */ | |
230 | float gamma; /* Gamma correction to use */ | |
231 | float matrix[3][3]; /* Transform matrix */ | |
ef416fc2 | 232 | } ppd_profile_t; |
233 | ||
f3c17241 MS |
234 | /**** New in CUPS 1.2/OS X 10.5 ****/ |
235 | typedef enum ppd_cptype_e /**** Custom Parameter Type @since CUPS 1.2/OS X 10.5@ ****/ | |
ef416fc2 | 236 | { |
fa73b229 | 237 | PPD_CUSTOM_CURVE, /* Curve value for f(x) = x^value */ |
238 | PPD_CUSTOM_INT, /* Integer number value */ | |
239 | PPD_CUSTOM_INVCURVE, /* Curve value for f(x) = x^(1/value) */ | |
240 | PPD_CUSTOM_PASSCODE, /* String of (hidden) numbers */ | |
241 | PPD_CUSTOM_PASSWORD, /* String of (hidden) characters */ | |
242 | PPD_CUSTOM_POINTS, /* Measurement value in points */ | |
243 | PPD_CUSTOM_REAL, /* Real number value */ | |
244 | PPD_CUSTOM_STRING /* String of characters */ | |
245 | } ppd_cptype_t; | |
246 | ||
f3c17241 | 247 | typedef union ppd_cplimit_u /**** Custom Parameter Limit @since CUPS 1.2/OS X 10.5@ ****/ |
b423cd4c | 248 | { |
249 | float custom_curve; /* Gamma value */ | |
250 | int custom_int; /* Integer value */ | |
251 | float custom_invcurve; /* Gamma value */ | |
252 | int custom_passcode; /* Passcode length */ | |
253 | int custom_password; /* Password length */ | |
254 | float custom_points; /* Measurement value */ | |
255 | float custom_real; /* Real value */ | |
256 | int custom_string; /* String length */ | |
257 | } ppd_cplimit_t; | |
258 | ||
f3c17241 | 259 | typedef union ppd_cpvalue_u /**** Custom Parameter Value @since CUPS 1.2/OS X 10.5@ ****/ |
ef416fc2 | 260 | { |
fa73b229 | 261 | float custom_curve; /* Gamma value */ |
262 | int custom_int; /* Integer value */ | |
263 | float custom_invcurve; /* Gamma value */ | |
264 | char *custom_passcode; /* Passcode value */ | |
265 | char *custom_password; /* Password value */ | |
266 | float custom_points; /* Measurement value */ | |
267 | float custom_real; /* Real value */ | |
268 | char *custom_string; /* String value */ | |
269 | } ppd_cpvalue_t; | |
270 | ||
f3c17241 | 271 | typedef struct ppd_cparam_s /**** Custom Parameter @since CUPS 1.2/OS X 10.5@ ****/ |
ef416fc2 | 272 | { |
fa73b229 | 273 | char name[PPD_MAX_NAME]; /* Parameter name */ |
274 | char text[PPD_MAX_TEXT]; /* Human-readable text */ | |
275 | int order; /* Order (0 to N) */ | |
276 | ppd_cptype_t type; /* Parameter type */ | |
b423cd4c | 277 | ppd_cplimit_t minimum, /* Minimum value */ |
278 | maximum; /* Maximum value */ | |
279 | ppd_cpvalue_t current; /* Current value */ | |
fa73b229 | 280 | } ppd_cparam_t; |
281 | ||
f3c17241 | 282 | typedef struct ppd_coption_s /**** Custom Option @since CUPS 1.2/OS X 10.5@ ****/ |
ef416fc2 | 283 | { |
fa73b229 | 284 | char keyword[PPD_MAX_NAME]; /* Name of option that is being extended... */ |
285 | ppd_option_t *option; /* Option that is being extended... */ | |
286 | int marked; /* Extended option is marked */ | |
287 | cups_array_t *params; /* Parameters */ | |
288 | } ppd_coption_t; | |
289 | ||
f14324a7 | 290 | typedef struct _ppd_cache_s _ppd_cache_t; |
f3c17241 | 291 | /**** PPD cache and mapping data @since CUPS 1.5/OS X 10.7@ @private@ ****/ |
f14324a7 | 292 | |
fa73b229 | 293 | typedef struct ppd_file_s /**** PPD File ****/ |
ef416fc2 | 294 | { |
fa73b229 | 295 | int language_level; /* Language level of device */ |
296 | int color_device; /* 1 = color device, 0 = grayscale */ | |
297 | int variable_sizes; /* 1 = supports variable sizes, 0 = doesn't */ | |
298 | int accurate_screens; /* 1 = supports accurate screens, 0 = not */ | |
299 | int contone_only; /* 1 = continuous tone only, 0 = not */ | |
300 | int landscape; /* -90 or 90 */ | |
301 | int model_number; /* Device-specific model number */ | |
302 | int manual_copies; /* 1 = Copies done manually, 0 = hardware */ | |
303 | int throughput; /* Pages per minute */ | |
304 | ppd_cs_t colorspace; /* Default colorspace */ | |
305 | char *patches; /* Patch commands to be sent to printer */ | |
306 | int num_emulations; /* Number of emulations supported */ | |
307 | ppd_emul_t *emulations; /* Emulations and the code to invoke them */ | |
308 | char *jcl_begin; /* Start JCL commands */ | |
309 | char *jcl_ps; /* Enter PostScript interpreter */ | |
310 | char *jcl_end; /* End JCL commands */ | |
311 | char *lang_encoding; /* Language encoding */ | |
312 | char *lang_version; /* Language version (English, Spanish, etc.) */ | |
313 | char *modelname; /* Model name (general) */ | |
314 | char *ttrasterizer; /* Truetype rasterizer */ | |
315 | char *manufacturer; /* Manufacturer name */ | |
316 | char *product; /* Product name (from PS RIP/interpreter) */ | |
317 | char *nickname; /* Nickname (specific) */ | |
318 | char *shortnickname; /* Short version of nickname */ | |
319 | int num_groups; /* Number of UI groups */ | |
320 | ppd_group_t *groups; /* UI groups */ | |
321 | int num_sizes; /* Number of page sizes */ | |
322 | ppd_size_t *sizes; /* Page sizes */ | |
323 | float custom_min[2]; /* Minimum variable page size */ | |
324 | float custom_max[2]; /* Maximum variable page size */ | |
325 | float custom_margins[4]; /* Margins around page */ | |
326 | int num_consts; /* Number of UI/Non-UI constraints */ | |
327 | ppd_const_t *consts; /* UI/Non-UI constraints */ | |
328 | int num_fonts; /* Number of pre-loaded fonts */ | |
329 | char **fonts; /* Pre-loaded fonts */ | |
66ab9486 MS |
330 | int num_profiles; /* Number of sRGB color profiles @deprecated@ */ |
331 | ppd_profile_t *profiles; /* sRGB color profiles @deprecated@ */ | |
fa73b229 | 332 | int num_filters; /* Number of filters */ |
333 | char **filters; /* Filter strings... */ | |
ef416fc2 | 334 | |
335 | /**** New in CUPS 1.1 ****/ | |
bc44d920 | 336 | int flip_duplex; /* 1 = Flip page for back sides @deprecated@ */ |
ef416fc2 | 337 | |
338 | /**** New in CUPS 1.1.19 ****/ | |
f3c17241 MS |
339 | char *protocols; /* Protocols (BCP, TBCP) string @since CUPS 1.1.19/OS X 10.3@ */ |
340 | char *pcfilename; /* PCFileName string @since CUPS 1.1.19/OS X 10.3@ */ | |
341 | int num_attrs; /* Number of attributes @since CUPS 1.1.19/OS X 10.3@ @private@ */ | |
342 | int cur_attr; /* Current attribute @since CUPS 1.1.19/OS X 10.3@ @private@ */ | |
343 | ppd_attr_t **attrs; /* Attributes @since CUPS 1.1.19/OS X 10.3@ @private@ */ | |
ef416fc2 | 344 | |
f3c17241 MS |
345 | /**** New in CUPS 1.2/OS X 10.5 ****/ |
346 | cups_array_t *sorted_attrs; /* Attribute lookup array @since CUPS 1.2/OS X 10.5@ @private@ */ | |
347 | cups_array_t *options; /* Option lookup array @since CUPS 1.2/OS X 10.5@ @private@ */ | |
348 | cups_array_t *coptions; /* Custom options array @since CUPS 1.2/OS X 10.5@ @private@ */ | |
b94498cf | 349 | |
f3c17241 MS |
350 | /**** New in CUPS 1.3/OS X 10.5 ****/ |
351 | cups_array_t *marked; /* Marked choices @since CUPS 1.3/OS X 10.5@ @private@ */ | |
66ab9486 | 352 | |
f3c17241 MS |
353 | /**** New in CUPS 1.4/OS X 10.6 ****/ |
354 | cups_array_t *cups_uiconstraints; /* cupsUIConstraints @since CUPS 1.4/OS X 10.6@ @private@ */ | |
54afec33 MS |
355 | |
356 | /**** New in CUPS 1.5 ****/ | |
f3c17241 | 357 | _ppd_cache_t *cache; /* PPD cache and mapping data @since CUPS 1.5/OS X 10.7@ @private@ */ |
ef416fc2 | 358 | } ppd_file_t; |
359 | ||
360 | ||
361 | /* | |
362 | * Prototypes... | |
363 | */ | |
364 | ||
aaf19ab0 | 365 | extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, |
e666fe5e MS |
366 | cups_option_t *options) _PPD_DEPRECATED; |
367 | extern void ppdClose(ppd_file_t *ppd) _PPD_DEPRECATED; | |
ef416fc2 | 368 | extern int ppdCollect(ppd_file_t *ppd, ppd_section_t section, |
e666fe5e MS |
369 | ppd_choice_t ***choices) _PPD_DEPRECATED; |
370 | extern int ppdConflicts(ppd_file_t *ppd) _PPD_DEPRECATED; | |
ef416fc2 | 371 | extern int ppdEmit(ppd_file_t *ppd, FILE *fp, |
e666fe5e | 372 | ppd_section_t section) _PPD_DEPRECATED; |
ef416fc2 | 373 | extern int ppdEmitFd(ppd_file_t *ppd, int fd, |
e666fe5e | 374 | ppd_section_t section) _PPD_DEPRECATED; |
ef416fc2 | 375 | extern int ppdEmitJCL(ppd_file_t *ppd, FILE *fp, int job_id, |
e666fe5e MS |
376 | const char *user, const char *title) |
377 | _PPD_DEPRECATED; | |
378 | extern ppd_choice_t *ppdFindChoice(ppd_option_t *o, const char *option) | |
379 | _PPD_DEPRECATED; | |
a2326b5b | 380 | extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd, |
e666fe5e MS |
381 | const char *keyword) |
382 | _PPD_DEPRECATED; | |
383 | extern ppd_option_t *ppdFindOption(ppd_file_t *ppd, const char *keyword) | |
384 | _PPD_DEPRECATED; | |
ef416fc2 | 385 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword, |
e666fe5e MS |
386 | const char *option) _PPD_DEPRECATED; |
387 | extern void ppdMarkDefaults(ppd_file_t *ppd) _PPD_DEPRECATED; | |
ef416fc2 | 388 | extern int ppdMarkOption(ppd_file_t *ppd, const char *keyword, |
e666fe5e MS |
389 | const char *option) _PPD_DEPRECATED; |
390 | extern ppd_file_t *ppdOpen(FILE *fp) _PPD_DEPRECATED; | |
391 | extern ppd_file_t *ppdOpenFd(int fd) _PPD_DEPRECATED; | |
392 | extern ppd_file_t *ppdOpenFile(const char *filename) _PPD_DEPRECATED; | |
393 | extern float ppdPageLength(ppd_file_t *ppd, const char *name) | |
394 | _PPD_DEPRECATED; | |
395 | extern ppd_size_t *ppdPageSize(ppd_file_t *ppd, const char *name) | |
396 | _PPD_DEPRECATED; | |
397 | extern float ppdPageWidth(ppd_file_t *ppd, const char *name) | |
398 | _PPD_DEPRECATED; | |
ef416fc2 | 399 | |
400 | /**** New in CUPS 1.1.19 ****/ | |
a2326b5b | 401 | extern const char *ppdErrorString(ppd_status_t status) _PPD_DEPRECATED; |
ef416fc2 | 402 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name, |
a2326b5b | 403 | const char *spec) _PPD_DEPRECATED; |
ef416fc2 | 404 | extern ppd_attr_t *ppdFindNextAttr(ppd_file_t *ppd, const char *name, |
a2326b5b MS |
405 | const char *spec) _PPD_DEPRECATED; |
406 | extern ppd_status_t ppdLastError(int *line) _PPD_DEPRECATED; | |
ef416fc2 | 407 | |
408 | /**** New in CUPS 1.1.20 ****/ | |
a2326b5b | 409 | extern void ppdSetConformance(ppd_conform_t c) _PPD_DEPRECATED; |
ef416fc2 | 410 | |
411 | /**** New in CUPS 1.2 ****/ | |
fa73b229 | 412 | extern int ppdCollect2(ppd_file_t *ppd, ppd_section_t section, |
a2326b5b MS |
413 | float min_order, ppd_choice_t ***choices) |
414 | _PPD_DEPRECATED; | |
fa73b229 | 415 | extern int ppdEmitAfterOrder(ppd_file_t *ppd, FILE *fp, |
416 | ppd_section_t section, int limit, | |
a2326b5b | 417 | float min_order) _PPD_DEPRECATED; |
e666fe5e MS |
418 | extern int ppdEmitJCLEnd(ppd_file_t *ppd, FILE *fp) |
419 | _PPD_DEPRECATED; | |
757d2cad | 420 | extern char *ppdEmitString(ppd_file_t *ppd, ppd_section_t section, |
a2326b5b | 421 | float min_order) _PPD_DEPRECATED; |
fa73b229 | 422 | extern ppd_coption_t *ppdFindCustomOption(ppd_file_t *ppd, |
e666fe5e MS |
423 | const char *keyword) |
424 | _PPD_DEPRECATED; | |
fa73b229 | 425 | extern ppd_cparam_t *ppdFindCustomParam(ppd_coption_t *opt, |
a2326b5b | 426 | const char *name) _PPD_DEPRECATED; |
e666fe5e MS |
427 | extern ppd_cparam_t *ppdFirstCustomParam(ppd_coption_t *opt) |
428 | _PPD_DEPRECATED; | |
a2326b5b MS |
429 | extern ppd_option_t *ppdFirstOption(ppd_file_t *ppd) _PPD_DEPRECATED; |
430 | extern ppd_cparam_t *ppdNextCustomParam(ppd_coption_t *opt) _PPD_DEPRECATED; | |
431 | extern ppd_option_t *ppdNextOption(ppd_file_t *ppd) _PPD_DEPRECATED; | |
432 | extern int ppdLocalize(ppd_file_t *ppd) _PPD_DEPRECATED; | |
433 | extern ppd_file_t *ppdOpen2(cups_file_t *fp) _PPD_DEPRECATED; | |
ef416fc2 | 434 | |
f3c17241 | 435 | /**** New in CUPS 1.3/OS X 10.5 ****/ |
bc44d920 | 436 | extern const char *ppdLocalizeIPPReason(ppd_file_t *ppd, |
437 | const char *reason, | |
438 | const char *scheme, | |
5a738aea | 439 | char *buffer, |
a2326b5b | 440 | size_t bufsize) _PPD_DEPRECATED; |
5a738aea | 441 | |
f3c17241 | 442 | /**** New in CUPS 1.4/OS X 10.6 ****/ |
aaf19ab0 MS |
443 | extern int cupsGetConflicts(ppd_file_t *ppd, const char *option, |
444 | const char *choice, | |
445 | cups_option_t **options) | |
e666fe5e | 446 | _PPD_DEPRECATED; |
a2326b5b MS |
447 | extern int cupsResolveConflicts(ppd_file_t *ppd, |
448 | const char *option, | |
aaf19ab0 MS |
449 | const char *choice, |
450 | int *num_options, | |
451 | cups_option_t **options) | |
a2326b5b | 452 | _PPD_DEPRECATED; |
66ab9486 MS |
453 | extern int ppdInstallableConflict(ppd_file_t *ppd, |
454 | const char *option, | |
aaf19ab0 | 455 | const char *choice) |
e666fe5e | 456 | _PPD_DEPRECATED; |
75bd9771 | 457 | extern ppd_attr_t *ppdLocalizeAttr(ppd_file_t *ppd, const char *keyword, |
a2326b5b | 458 | const char *spec) _PPD_DEPRECATED; |
5a738aea | 459 | extern const char *ppdLocalizeMarkerName(ppd_file_t *ppd, |
a2326b5b MS |
460 | const char *name) |
461 | _PPD_DEPRECATED; | |
005dd1eb MS |
462 | extern int ppdPageSizeLimits(ppd_file_t *ppd, |
463 | ppd_size_t *minimum, | |
a2326b5b | 464 | ppd_size_t *maximum) _PPD_DEPRECATED; |
bc44d920 | 465 | |
ef416fc2 | 466 | |
467 | /* | |
468 | * C++ magic... | |
469 | */ | |
470 | ||
471 | # ifdef __cplusplus | |
472 | } | |
473 | # endif /* __cplusplus */ | |
474 | #endif /* !_CUPS_PPD_H_ */ | |
475 | ||
476 | /* | |
f2d18633 | 477 | * End of "$Id$". |
ef416fc2 | 478 | */ |