]> git.ipfire.org Git - thirdparty/cups.git/blob - cups/pwg-private.h
License change: Apache License, Version 2.0.
[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 * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
7 */
8
9 #ifndef _CUPS_PWG_PRIVATE_H_
10 # define _CUPS_PWG_PRIVATE_H_
11
12
13 /*
14 * Include necessary headers...
15 */
16
17 # include <cups/cups.h>
18
19
20 /*
21 * C++ magic...
22 */
23
24 # ifdef __cplusplus
25 extern "C" {
26 # endif /* __cplusplus */
27
28
29 /*
30 * Functions...
31 */
32
33 extern void _pwgGenerateSize(char *keyword, size_t keysize,
34 const char *prefix,
35 const char *name,
36 int width, int length)
37 _CUPS_INTERNAL_MSG("Use pwgFormatSizeName instead.");
38 extern int _pwgInitSize(pwg_size_t *size, ipp_t *job,
39 int *margins_set)
40 _CUPS_INTERNAL_MSG("Use pwgInitSize instead.");
41 extern const pwg_media_t *_pwgMediaTable(size_t *num_media);
42 extern pwg_media_t *_pwgMediaNearSize(int width, int length, int epsilon);
43
44 # ifdef __cplusplus
45 }
46 # endif /* __cplusplus */
47
48 #endif /* !_CUPS_PWG_PRIVATE_H_ */