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