]> git.ipfire.org Git - thirdparty/cups.git/blob - cups/pwg-private.h
More tweaks for IPP Everywhere support in web interface.
[thirdparty/cups.git] / cups / pwg-private.h
1 /*
2 * Private PWG media API definitions for CUPS.
3 *
4 * Copyright 2009-2016 by Apple Inc.
5 *
6 * These coded instructions, statements, and computer programs are the
7 * property of Apple Inc. and are protected by Federal copyright
8 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
9 * which should have been included with this file. If this file is
10 * missing or damaged, see the license at "http://www.cups.org/".
11 *
12 * This file is subject to the Apple OS-Developed Software exception.
13 */
14
15 #ifndef _CUPS_PWG_PRIVATE_H_
16 # define _CUPS_PWG_PRIVATE_H_
17
18
19 /*
20 * Include necessary headers...
21 */
22
23 # include <cups/cups.h>
24
25
26 /*
27 * C++ magic...
28 */
29
30 # ifdef __cplusplus
31 extern "C" {
32 # endif /* __cplusplus */
33
34
35 /*
36 * Functions...
37 */
38
39 extern void _pwgGenerateSize(char *keyword, size_t keysize,
40 const char *prefix,
41 const char *name,
42 int width, int length)
43 _CUPS_INTERNAL_MSG("Use pwgFormatSizeName instead.");
44 extern int _pwgInitSize(pwg_size_t *size, ipp_t *job,
45 int *margins_set)
46 _CUPS_INTERNAL_MSG("Use pwgInitSize instead.");
47 extern const pwg_media_t *_pwgMediaTable(size_t *num_media);
48 extern pwg_media_t *_pwgMediaNearSize(int width, int length, int epsilon);
49
50 # ifdef __cplusplus
51 }
52 # endif /* __cplusplus */
53
54 #endif /* !_CUPS_PWG_PRIVATE_H_ */