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