]>
Commit | Line | Data |
---|---|---|
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 | * |
187b9322 MS |
7 | * Copyright © 2007-2018 by Apple Inc. |
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 | |
35 | extern "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 | ||
187b9322 | 59 | typedef enum ppd_ui_e /**** UI Types @deprecated@ ****/ |
ef416fc2 | 60 | { |
fa73b229 | 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 */ | |
ef416fc2 | 64 | } ppd_ui_t; |
65 | ||
187b9322 | 66 | typedef enum ppd_section_e /**** Order dependency sections @deprecated@ ****/ |
ef416fc2 | 67 | { |
fa73b229 | 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 */ | |
ef416fc2 | 74 | } ppd_section_t; |
75 | ||
187b9322 | 76 | typedef enum ppd_cs_e /**** Colorspaces @deprecated@ ****/ |
ef416fc2 | 77 | { |
fa73b229 | 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 */ | |
ef416fc2 | 84 | } ppd_cs_t; |
85 | ||
187b9322 | 86 | typedef enum ppd_status_e /**** Status Codes @deprecated@ ****/ |
ef416fc2 | 87 | { |
fa73b229 | 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 */ | |
ef55b745 MS |
108 | PPD_BAD_CUSTOM_PARAM, /* Bad custom parameter */ |
109 | PPD_MISSING_OPTION_KEYWORD, /* Missing option keyword */ | |
110 | PPD_BAD_VALUE, /* Bad value string */ | |
0268488e | 111 | PPD_MISSING_CLOSE_GROUP, /* Missing CloseGroup */ |
bac967ae MS |
112 | PPD_BAD_CLOSE_UI, /* Bad CloseUI/JCLCloseUI */ |
113 | PPD_MISSING_CLOSE_UI, /* Missing CloseUI/JCLCloseUI */ | |
ef55b745 | 114 | PPD_MAX_STATUS /* @private@ */ |
ef416fc2 | 115 | } ppd_status_t; |
116 | ||
187b9322 | 117 | enum ppd_conform_e /**** Conformance Levels @deprecated@ ****/ |
ef416fc2 | 118 | { |
fa73b229 | 119 | PPD_CONFORM_RELAXED, /* Relax whitespace and control char */ |
120 | PPD_CONFORM_STRICT /* Require strict conformance */ | |
5a738aea MS |
121 | }; |
122 | ||
123 | typedef enum ppd_conform_e ppd_conform_t; | |
187b9322 | 124 | /**** Conformance Levels @deprecated@ ****/ |
ef416fc2 | 125 | |
187b9322 | 126 | typedef struct ppd_attr_s /**** PPD Attribute Structure @deprecated@ ****/ |
ef416fc2 | 127 | { |
fa73b229 | 128 | char name[PPD_MAX_NAME]; /* Name of attribute (cupsXYZ) */ |
129 | char spec[PPD_MAX_NAME]; /* Specifier string, if any */ | |
130 | char text[PPD_MAX_TEXT]; /* Human-readable text, if any */ | |
131 | char *value; /* Value string */ | |
ef416fc2 | 132 | } ppd_attr_t; |
133 | ||
fa73b229 | 134 | typedef struct ppd_option_s ppd_option_t; |
187b9322 | 135 | /**** Options @deprecated@ ****/ |
ef416fc2 | 136 | |
187b9322 | 137 | typedef struct ppd_choice_s /**** Option choices @deprecated@ ****/ |
ef416fc2 | 138 | { |
fa73b229 | 139 | char marked; /* 0 if not selected, 1 otherwise */ |
140 | char choice[PPD_MAX_NAME]; /* Computer-readable option name */ | |
141 | char text[PPD_MAX_TEXT]; /* Human-readable option name */ | |
142 | char *code; /* Code to send for this option */ | |
143 | ppd_option_t *option; /* Pointer to parent option structure */ | |
ef416fc2 | 144 | } ppd_choice_t; |
145 | ||
187b9322 | 146 | struct ppd_option_s /**** Options @deprecated@ ****/ |
ef416fc2 | 147 | { |
fa73b229 | 148 | char conflicted; /* 0 if no conflicts exist, 1 otherwise */ |
149 | char keyword[PPD_MAX_NAME]; /* Option keyword name ("PageSize", etc.) */ | |
150 | char defchoice[PPD_MAX_NAME];/* Default option choice */ | |
151 | char text[PPD_MAX_TEXT]; /* Human-readable text */ | |
152 | ppd_ui_t ui; /* Type of UI option */ | |
153 | ppd_section_t section; /* Section for command */ | |
154 | float order; /* Order number */ | |
155 | int num_choices; /* Number of option choices */ | |
156 | ppd_choice_t *choices; /* Option choices */ | |
ef416fc2 | 157 | }; |
158 | ||
187b9322 | 159 | typedef struct ppd_group_s /**** Groups @deprecated@ ****/ |
ef416fc2 | 160 | { |
161 | /**** Group text strings are limited to 39 chars + nul in order to | |
162 | **** preserve binary compatibility and allow applications to get | |
163 | **** the group's keyword name. | |
164 | ****/ | |
165 | char text[PPD_MAX_TEXT - PPD_MAX_NAME]; | |
fa73b229 | 166 | /* Human-readable group name */ |
8072030b | 167 | char name[PPD_MAX_NAME]; /* Group name @since CUPS 1.1.18/macOS 10.3@ */ |
fa73b229 | 168 | int num_options; /* Number of options */ |
169 | ppd_option_t *options; /* Options */ | |
170 | int num_subgroups; /* Number of sub-groups */ | |
171 | struct ppd_group_s *subgroups; /* Sub-groups (max depth = 1) */ | |
ef416fc2 | 172 | } ppd_group_t; |
173 | ||
187b9322 | 174 | typedef struct ppd_const_s /**** Constraints @deprecated@ ****/ |
ef416fc2 | 175 | { |
fa73b229 | 176 | char option1[PPD_MAX_NAME]; /* First keyword */ |
177 | char choice1[PPD_MAX_NAME]; /* First option/choice (blank for all) */ | |
178 | char option2[PPD_MAX_NAME]; /* Second keyword */ | |
179 | char choice2[PPD_MAX_NAME]; /* Second option/choice (blank for all) */ | |
ef416fc2 | 180 | } ppd_const_t; |
181 | ||
187b9322 | 182 | typedef struct ppd_size_s /**** Page Sizes @deprecated@ ****/ |
ef416fc2 | 183 | { |
fa73b229 | 184 | int marked; /* Page size selected? */ |
185 | char name[PPD_MAX_NAME]; /* Media size option */ | |
186 | float width; /* Width of media in points */ | |
187 | float length; /* Length of media in points */ | |
188 | float left; /* Left printable margin in points */ | |
189 | float bottom; /* Bottom printable margin in points */ | |
190 | float right; /* Right printable margin in points */ | |
191 | float top; /* Top printable margin in points */ | |
ef416fc2 | 192 | } ppd_size_t; |
193 | ||
187b9322 | 194 | typedef struct ppd_emul_s /**** Emulators @deprecated@ ****/ |
ef416fc2 | 195 | { |
fa73b229 | 196 | char name[PPD_MAX_NAME]; /* Emulator name */ |
197 | char *start; /* Code to switch to this emulation */ | |
198 | char *stop; /* Code to stop this emulation */ | |
ef416fc2 | 199 | } ppd_emul_t; |
200 | ||
187b9322 | 201 | typedef struct ppd_profile_s /**** sRGB Color Profiles @deprecated@ ****/ |
ef416fc2 | 202 | { |
203 | char resolution[PPD_MAX_NAME]; | |
fa73b229 | 204 | /* Resolution or "-" */ |
ef416fc2 | 205 | char media_type[PPD_MAX_NAME]; |
fa73b229 | 206 | /* Media type or "-" */ |
207 | float density; /* Ink density to use */ | |
208 | float gamma; /* Gamma correction to use */ | |
209 | float matrix[3][3]; /* Transform matrix */ | |
ef416fc2 | 210 | } ppd_profile_t; |
211 | ||
8072030b | 212 | /**** New in CUPS 1.2/macOS 10.5 ****/ |
187b9322 | 213 | typedef enum ppd_cptype_e /**** Custom Parameter Type @deprecated@ ****/ |
ef416fc2 | 214 | { |
fa73b229 | 215 | PPD_CUSTOM_CURVE, /* Curve value for f(x) = x^value */ |
216 | PPD_CUSTOM_INT, /* Integer number value */ | |
217 | PPD_CUSTOM_INVCURVE, /* Curve value for f(x) = x^(1/value) */ | |
218 | PPD_CUSTOM_PASSCODE, /* String of (hidden) numbers */ | |
219 | PPD_CUSTOM_PASSWORD, /* String of (hidden) characters */ | |
220 | PPD_CUSTOM_POINTS, /* Measurement value in points */ | |
221 | PPD_CUSTOM_REAL, /* Real number value */ | |
222 | PPD_CUSTOM_STRING /* String of characters */ | |
223 | } ppd_cptype_t; | |
224 | ||
187b9322 | 225 | typedef union ppd_cplimit_u /**** Custom Parameter Limit @deprecated@ ****/ |
b423cd4c | 226 | { |
227 | float custom_curve; /* Gamma value */ | |
228 | int custom_int; /* Integer value */ | |
229 | float custom_invcurve; /* Gamma value */ | |
230 | int custom_passcode; /* Passcode length */ | |
231 | int custom_password; /* Password length */ | |
232 | float custom_points; /* Measurement value */ | |
233 | float custom_real; /* Real value */ | |
234 | int custom_string; /* String length */ | |
235 | } ppd_cplimit_t; | |
236 | ||
187b9322 | 237 | typedef union ppd_cpvalue_u /**** Custom Parameter Value @deprecated@ ****/ |
ef416fc2 | 238 | { |
fa73b229 | 239 | float custom_curve; /* Gamma value */ |
240 | int custom_int; /* Integer value */ | |
241 | float custom_invcurve; /* Gamma value */ | |
242 | char *custom_passcode; /* Passcode value */ | |
243 | char *custom_password; /* Password value */ | |
244 | float custom_points; /* Measurement value */ | |
245 | float custom_real; /* Real value */ | |
246 | char *custom_string; /* String value */ | |
247 | } ppd_cpvalue_t; | |
248 | ||
187b9322 | 249 | typedef struct ppd_cparam_s /**** Custom Parameter @deprecated@ ****/ |
ef416fc2 | 250 | { |
fa73b229 | 251 | char name[PPD_MAX_NAME]; /* Parameter name */ |
252 | char text[PPD_MAX_TEXT]; /* Human-readable text */ | |
253 | int order; /* Order (0 to N) */ | |
254 | ppd_cptype_t type; /* Parameter type */ | |
b423cd4c | 255 | ppd_cplimit_t minimum, /* Minimum value */ |
256 | maximum; /* Maximum value */ | |
257 | ppd_cpvalue_t current; /* Current value */ | |
fa73b229 | 258 | } ppd_cparam_t; |
259 | ||
187b9322 | 260 | typedef struct ppd_coption_s /**** Custom Option @deprecated@ ****/ |
ef416fc2 | 261 | { |
fa73b229 | 262 | char keyword[PPD_MAX_NAME]; /* Name of option that is being extended... */ |
263 | ppd_option_t *option; /* Option that is being extended... */ | |
264 | int marked; /* Extended option is marked */ | |
265 | cups_array_t *params; /* Parameters */ | |
266 | } ppd_coption_t; | |
267 | ||
f14324a7 | 268 | typedef struct _ppd_cache_s _ppd_cache_t; |
187b9322 | 269 | /**** PPD cache and mapping data @deprecated@ ****/ |
f14324a7 | 270 | |
187b9322 | 271 | typedef struct ppd_file_s /**** PPD File @deprecated@ ****/ |
ef416fc2 | 272 | { |
fa73b229 | 273 | int language_level; /* Language level of device */ |
274 | int color_device; /* 1 = color device, 0 = grayscale */ | |
275 | int variable_sizes; /* 1 = supports variable sizes, 0 = doesn't */ | |
276 | int accurate_screens; /* 1 = supports accurate screens, 0 = not */ | |
277 | int contone_only; /* 1 = continuous tone only, 0 = not */ | |
278 | int landscape; /* -90 or 90 */ | |
279 | int model_number; /* Device-specific model number */ | |
280 | int manual_copies; /* 1 = Copies done manually, 0 = hardware */ | |
281 | int throughput; /* Pages per minute */ | |
282 | ppd_cs_t colorspace; /* Default colorspace */ | |
283 | char *patches; /* Patch commands to be sent to printer */ | |
284 | int num_emulations; /* Number of emulations supported */ | |
285 | ppd_emul_t *emulations; /* Emulations and the code to invoke them */ | |
286 | char *jcl_begin; /* Start JCL commands */ | |
287 | char *jcl_ps; /* Enter PostScript interpreter */ | |
288 | char *jcl_end; /* End JCL commands */ | |
289 | char *lang_encoding; /* Language encoding */ | |
290 | char *lang_version; /* Language version (English, Spanish, etc.) */ | |
291 | char *modelname; /* Model name (general) */ | |
292 | char *ttrasterizer; /* Truetype rasterizer */ | |
293 | char *manufacturer; /* Manufacturer name */ | |
294 | char *product; /* Product name (from PS RIP/interpreter) */ | |
295 | char *nickname; /* Nickname (specific) */ | |
296 | char *shortnickname; /* Short version of nickname */ | |
297 | int num_groups; /* Number of UI groups */ | |
298 | ppd_group_t *groups; /* UI groups */ | |
299 | int num_sizes; /* Number of page sizes */ | |
300 | ppd_size_t *sizes; /* Page sizes */ | |
301 | float custom_min[2]; /* Minimum variable page size */ | |
302 | float custom_max[2]; /* Maximum variable page size */ | |
303 | float custom_margins[4]; /* Margins around page */ | |
304 | int num_consts; /* Number of UI/Non-UI constraints */ | |
305 | ppd_const_t *consts; /* UI/Non-UI constraints */ | |
306 | int num_fonts; /* Number of pre-loaded fonts */ | |
307 | char **fonts; /* Pre-loaded fonts */ | |
66ab9486 MS |
308 | int num_profiles; /* Number of sRGB color profiles @deprecated@ */ |
309 | ppd_profile_t *profiles; /* sRGB color profiles @deprecated@ */ | |
fa73b229 | 310 | int num_filters; /* Number of filters */ |
311 | char **filters; /* Filter strings... */ | |
ef416fc2 | 312 | |
313 | /**** New in CUPS 1.1 ****/ | |
bc44d920 | 314 | int flip_duplex; /* 1 = Flip page for back sides @deprecated@ */ |
ef416fc2 | 315 | |
316 | /**** New in CUPS 1.1.19 ****/ | |
8072030b MS |
317 | char *protocols; /* Protocols (BCP, TBCP) string @since CUPS 1.1.19/macOS 10.3@ */ |
318 | char *pcfilename; /* PCFileName string @since CUPS 1.1.19/macOS 10.3@ */ | |
319 | int num_attrs; /* Number of attributes @since CUPS 1.1.19/macOS 10.3@ @private@ */ | |
320 | int cur_attr; /* Current attribute @since CUPS 1.1.19/macOS 10.3@ @private@ */ | |
321 | ppd_attr_t **attrs; /* Attributes @since CUPS 1.1.19/macOS 10.3@ @private@ */ | |
ef416fc2 | 322 | |
8072030b MS |
323 | /**** New in CUPS 1.2/macOS 10.5 ****/ |
324 | cups_array_t *sorted_attrs; /* Attribute lookup array @since CUPS 1.2/macOS 10.5@ @private@ */ | |
325 | cups_array_t *options; /* Option lookup array @since CUPS 1.2/macOS 10.5@ @private@ */ | |
326 | cups_array_t *coptions; /* Custom options array @since CUPS 1.2/macOS 10.5@ @private@ */ | |
b94498cf | 327 | |
8072030b MS |
328 | /**** New in CUPS 1.3/macOS 10.5 ****/ |
329 | cups_array_t *marked; /* Marked choices @since CUPS 1.3/macOS 10.5@ @private@ */ | |
66ab9486 | 330 | |
8072030b MS |
331 | /**** New in CUPS 1.4/macOS 10.6 ****/ |
332 | cups_array_t *cups_uiconstraints; /* cupsUIConstraints @since CUPS 1.4/macOS 10.6@ @private@ */ | |
54afec33 MS |
333 | |
334 | /**** New in CUPS 1.5 ****/ | |
8072030b | 335 | _ppd_cache_t *cache; /* PPD cache and mapping data @since CUPS 1.5/macOS 10.7@ @private@ */ |
ef416fc2 | 336 | } ppd_file_t; |
337 | ||
338 | ||
339 | /* | |
340 | * Prototypes... | |
341 | */ | |
342 | ||
187b9322 MS |
343 | extern const char *cupsGetPPD(const char *name) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
344 | extern const char *cupsGetPPD2(http_t *http, const char *name) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | |
345 | 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."); | |
346 | extern char *cupsGetServerPPD(http_t *http, const char *name) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | |
347 | extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | |
f787e1e3 | 348 | |
187b9322 | 349 | extern void ppdClose(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
ef416fc2 | 350 | extern int ppdCollect(ppd_file_t *ppd, ppd_section_t section, |
187b9322 MS |
351 | ppd_choice_t ***choices) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
352 | extern int ppdConflicts(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | |
ef416fc2 | 353 | extern int ppdEmit(ppd_file_t *ppd, FILE *fp, |
187b9322 | 354 | ppd_section_t section) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
ef416fc2 | 355 | extern int ppdEmitFd(ppd_file_t *ppd, int fd, |
187b9322 | 356 | ppd_section_t section) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
ef416fc2 | 357 | extern int ppdEmitJCL(ppd_file_t *ppd, FILE *fp, int job_id, |
e666fe5e | 358 | const char *user, const char *title) |
187b9322 | 359 | _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
e666fe5e | 360 | extern ppd_choice_t *ppdFindChoice(ppd_option_t *o, const char *option) |
187b9322 | 361 | _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
a2326b5b | 362 | extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd, |
e666fe5e | 363 | const char *keyword) |
187b9322 | 364 | _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
e666fe5e | 365 | extern ppd_option_t *ppdFindOption(ppd_file_t *ppd, const char *keyword) |
187b9322 | 366 | _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
ef416fc2 | 367 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword, |
187b9322 MS |
368 | const char *option) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
369 | extern void ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | |
ef416fc2 | 370 | extern int ppdMarkOption(ppd_file_t *ppd, const char *keyword, |
187b9322 MS |
371 | const char *option) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
372 | extern ppd_file_t *ppdOpen(FILE *fp) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | |
373 | extern ppd_file_t *ppdOpenFd(int fd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | |
374 | extern ppd_file_t *ppdOpenFile(const char *filename) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | |
e666fe5e | 375 | extern float ppdPageLength(ppd_file_t *ppd, const char *name) |
187b9322 | 376 | _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
e666fe5e | 377 | extern ppd_size_t *ppdPageSize(ppd_file_t *ppd, const char *name) |
187b9322 | 378 | _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
e666fe5e | 379 | extern float ppdPageWidth(ppd_file_t *ppd, const char *name) |
187b9322 | 380 | _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
ef416fc2 | 381 | |
382 | /**** New in CUPS 1.1.19 ****/ | |
187b9322 | 383 | extern const char *ppdErrorString(ppd_status_t status) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
ef416fc2 | 384 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name, |
187b9322 | 385 | const char *spec) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
ef416fc2 | 386 | extern ppd_attr_t *ppdFindNextAttr(ppd_file_t *ppd, const char *name, |
187b9322 MS |
387 | const char *spec) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
388 | extern ppd_status_t ppdLastError(int *line) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | |
ef416fc2 | 389 | |
390 | /**** New in CUPS 1.1.20 ****/ | |
187b9322 | 391 | extern void ppdSetConformance(ppd_conform_t c) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
ef416fc2 | 392 | |
393 | /**** New in CUPS 1.2 ****/ | |
6e5a57e8 MS |
394 | extern int cupsRasterInterpretPPD(cups_page_header2_t *h, |
395 | ppd_file_t *ppd, | |
396 | int num_options, | |
397 | cups_option_t *options, | |
187b9322 | 398 | cups_interpret_cb_t func) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
fa73b229 | 399 | extern int ppdCollect2(ppd_file_t *ppd, ppd_section_t section, |
a2326b5b | 400 | float min_order, ppd_choice_t ***choices) |
187b9322 | 401 | _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
fa73b229 | 402 | extern int ppdEmitAfterOrder(ppd_file_t *ppd, FILE *fp, |
403 | ppd_section_t section, int limit, | |
187b9322 | 404 | float min_order) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
e666fe5e | 405 | extern int ppdEmitJCLEnd(ppd_file_t *ppd, FILE *fp) |
187b9322 | 406 | _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
757d2cad | 407 | extern char *ppdEmitString(ppd_file_t *ppd, ppd_section_t section, |
187b9322 | 408 | float min_order) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
fa73b229 | 409 | extern ppd_coption_t *ppdFindCustomOption(ppd_file_t *ppd, |
e666fe5e | 410 | const char *keyword) |
187b9322 | 411 | _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
fa73b229 | 412 | extern ppd_cparam_t *ppdFindCustomParam(ppd_coption_t *opt, |
187b9322 | 413 | const char *name) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
e666fe5e | 414 | extern ppd_cparam_t *ppdFirstCustomParam(ppd_coption_t *opt) |
187b9322 MS |
415 | _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
416 | extern ppd_option_t *ppdFirstOption(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | |
417 | extern ppd_cparam_t *ppdNextCustomParam(ppd_coption_t *opt) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | |
418 | extern ppd_option_t *ppdNextOption(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | |
419 | extern int ppdLocalize(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | |
420 | extern ppd_file_t *ppdOpen2(cups_file_t *fp) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | |
ef416fc2 | 421 | |
8072030b | 422 | /**** New in CUPS 1.3/macOS 10.5 ****/ |
bc44d920 | 423 | extern const char *ppdLocalizeIPPReason(ppd_file_t *ppd, |
424 | const char *reason, | |
425 | const char *scheme, | |
5a738aea | 426 | char *buffer, |
187b9322 | 427 | size_t bufsize) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
5a738aea | 428 | |
8072030b | 429 | /**** New in CUPS 1.4/macOS 10.6 ****/ |
aaf19ab0 MS |
430 | extern int cupsGetConflicts(ppd_file_t *ppd, const char *option, |
431 | const char *choice, | |
432 | cups_option_t **options) | |
187b9322 | 433 | _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
a2326b5b MS |
434 | extern int cupsResolveConflicts(ppd_file_t *ppd, |
435 | const char *option, | |
aaf19ab0 MS |
436 | const char *choice, |
437 | int *num_options, | |
438 | cups_option_t **options) | |
187b9322 | 439 | _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
66ab9486 MS |
440 | extern int ppdInstallableConflict(ppd_file_t *ppd, |
441 | const char *option, | |
aaf19ab0 | 442 | const char *choice) |
187b9322 | 443 | _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
75bd9771 | 444 | extern ppd_attr_t *ppdLocalizeAttr(ppd_file_t *ppd, const char *keyword, |
187b9322 | 445 | const char *spec) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
5a738aea | 446 | extern const char *ppdLocalizeMarkerName(ppd_file_t *ppd, |
a2326b5b | 447 | const char *name) |
187b9322 | 448 | _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
005dd1eb MS |
449 | extern int ppdPageSizeLimits(ppd_file_t *ppd, |
450 | ppd_size_t *minimum, | |
187b9322 | 451 | ppd_size_t *maximum) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); |
bc44d920 | 452 | |
ef416fc2 | 453 | |
454 | /* | |
455 | * C++ magic... | |
456 | */ | |
457 | ||
458 | # ifdef __cplusplus | |
459 | } | |
460 | # endif /* __cplusplus */ | |
461 | #endif /* !_CUPS_PPD_H_ */ |