]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups/pwg-private.h
4 * Private PWG media API definitions for CUPS.
6 * Copyright 2009-2013 by Apple Inc.
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/".
14 * This file is subject to the Apple OS-Developed Software exception.
17 #ifndef _CUPS_PWG_PRIVATE_H_
18 # define _CUPS_PWG_PRIVATE_H_
22 * Include necessary headers...
25 # include <cups/cups.h>
34 # endif /* __cplusplus */
38 * Deprecated stuff for prior users of the private PWG media API...
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 */
52 extern void _pwgGenerateSize(char *keyword
, size_t keysize
,
55 int width
, int length
)
56 _CUPS_INTERNAL_MSG("Use pwgFormatSizeName instead.");
57 extern int _pwgInitSize(pwg_size_t
*size
, ipp_t
*job
,
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.");
68 extern const pwg_media_t
*_pwgMediaTable(size_t *num_media
);
69 extern pwg_media_t
*_pwgMediaNearSize(int width
, int length
, int epsilon
);
73 # endif /* __cplusplus */
75 #endif /* !_CUPS_PWG_PRIVATE_H_ */