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