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