]>
Commit | Line | Data |
---|---|---|
54afec33 MS |
1 | /* |
2 | * "$Id$" | |
3 | * | |
71e16022 | 4 | * Private PWG media API definitions for CUPS. |
54afec33 | 5 | * |
6961465f | 6 | * Copyright 2009-2013 by Apple Inc. |
54afec33 MS |
7 | * |
8 | * These coded instructions, statements, and computer programs are the | |
9 | * property of Apple Inc. and are protected by Federal copyright | |
10 | * law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
11 | * which should have been included with this file. If this file is | |
12 | * file is missing or damaged, see the license at "http://www.cups.org/". | |
13 | * | |
14 | * This file is subject to the Apple OS-Developed Software exception. | |
15 | */ | |
16 | ||
17 | #ifndef _CUPS_PWG_PRIVATE_H_ | |
18 | # define _CUPS_PWG_PRIVATE_H_ | |
19 | ||
20 | ||
21 | /* | |
22 | * Include necessary headers... | |
23 | */ | |
24 | ||
25 | # include <cups/cups.h> | |
26 | ||
27 | ||
28 | /* | |
29 | * C++ magic... | |
30 | */ | |
31 | ||
32 | # ifdef __cplusplus | |
33 | extern "C" { | |
34 | # endif /* __cplusplus */ | |
35 | ||
36 | ||
37 | /* | |
6961465f | 38 | * Deprecated stuff for prior users of the private PWG media API... |
54afec33 MS |
39 | */ |
40 | ||
6961465f MS |
41 | # ifndef _CUPS_NO_DEPRECATED |
42 | typedef struct pwg_map_s _pwg_map_t; | |
43 | typedef struct pwg_media_s _pwg_media_t; | |
44 | typedef struct pwg_size_s _pwg_size_t; | |
45 | # endif /* _CUPS_NO_DEPRECATED */ | |
54afec33 | 46 | |
54afec33 MS |
47 | |
48 | /* | |
49 | * Functions... | |
50 | */ | |
51 | ||
54afec33 MS |
52 | extern void _pwgGenerateSize(char *keyword, size_t keysize, |
53 | const char *prefix, | |
c7017ecc | 54 | const char *name, |
6961465f MS |
55 | int width, int length) |
56 | _CUPS_INTERNAL_MSG("Use pwgFormatSizeName instead."); | |
57 | extern int _pwgInitSize(pwg_size_t *size, ipp_t *job, | |
58 | int *margins_set) | |
59 | _CUPS_INTERNAL_MSG("Use pwgInitSize instead."); | |
60 | extern pwg_media_t *_pwgMediaForLegacy(const char *legacy) | |
61 | _CUPS_INTERNAL_MSG("Use pwgMediaForLegacy instead."); | |
62 | extern pwg_media_t *_pwgMediaForPPD(const char *ppd) | |
63 | _CUPS_INTERNAL_MSG("Use pwgMediaForPPD instead."); | |
64 | extern pwg_media_t *_pwgMediaForPWG(const char *pwg) | |
65 | _CUPS_INTERNAL_MSG("Use pwgMediaForPWG instead."); | |
66 | extern pwg_media_t *_pwgMediaForSize(int width, int length) | |
67 | _CUPS_INTERNAL_MSG("Use pwgMediaForSize instead."); | |
54afec33 | 68 | |
54afec33 MS |
69 | # ifdef __cplusplus |
70 | } | |
71 | # endif /* __cplusplus */ | |
72 | ||
73 | #endif /* !_CUPS_PWG_PRIVATE_H_ */ | |
74 | ||
75 | /* | |
76 | * End of "$Id$". | |
77 | */ |