1/*
2 * "$Id: pwg-private.h 11433 2013-11-20 18:57:44Z msweet $"
3 *
4 *   Private PWG media API definitions for CUPS.
5 *
6 *   Copyright 2009-2013 by Apple Inc.
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
33extern "C" {
34#  endif /* __cplusplus */
35
36
37/*
38 * Deprecated stuff for prior users of the private PWG media API...
39 */
40
41#  ifndef _CUPS_NO_DEPRECATED
42typedef struct pwg_map_s _pwg_map_t;
43typedef struct pwg_media_s _pwg_media_t;
44typedef struct pwg_size_s _pwg_size_t;
45#  endif /* _CUPS_NO_DEPRECATED */
46
47
48/*
49 * Functions...
50 */
51
52extern void		_pwgGenerateSize(char *keyword, size_t keysize,
53				         const char *prefix,
54					 const char *name,
55					 int width, int length)
56					 _CUPS_INTERNAL_MSG("Use pwgFormatSizeName instead.");
57extern int		_pwgInitSize(pwg_size_t *size, ipp_t *job,
58				     int *margins_set)
59				     _CUPS_INTERNAL_MSG("Use pwgInitSize instead.");
60extern pwg_media_t	*_pwgMediaForLegacy(const char *legacy)
61			    _CUPS_INTERNAL_MSG("Use pwgMediaForLegacy instead.");
62extern pwg_media_t	*_pwgMediaForPPD(const char *ppd)
63			    _CUPS_INTERNAL_MSG("Use pwgMediaForPPD instead.");
64extern pwg_media_t	*_pwgMediaForPWG(const char *pwg)
65			    _CUPS_INTERNAL_MSG("Use pwgMediaForPWG instead.");
66extern pwg_media_t	*_pwgMediaForSize(int width, int length)
67			    _CUPS_INTERNAL_MSG("Use pwgMediaForSize instead.");
68extern const pwg_media_t *_pwgMediaTable(size_t *num_media);
69
70#  ifdef __cplusplus
71}
72#  endif /* __cplusplus */
73
74#endif /* !_CUPS_PWG_PRIVATE_H_ */
75
76/*
77 * End of "$Id: pwg-private.h 11433 2013-11-20 18:57:44Z msweet $".
78 */
79