]> git.ipfire.org Git - thirdparty/cups.git/blame - cups/pwg-private.h
Import CUPS v1.7.1
[thirdparty/cups.git] / cups / pwg-private.h
CommitLineData
54afec33 1/*
61515785 2 * "$Id: pwg-private.h 11240 2013-08-14 20:33:55Z msweet $"
54afec33 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
33extern "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
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 */
54afec33 46
54afec33
MS
47
48/*
49 * Functions...
50 */
51
54afec33
MS
52extern 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.");
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.");
5f19ab52 68extern const pwg_media_t *_pwgMediaTable(size_t *num_media);
54afec33 69
54afec33
MS
70# ifdef __cplusplus
71}
72# endif /* __cplusplus */
73
74#endif /* !_CUPS_PWG_PRIVATE_H_ */
75
76/*
61515785 77 * End of "$Id: pwg-private.h 11240 2013-08-14 20:33:55Z msweet $".
54afec33 78 */