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