]>
Commit | Line | Data |
---|---|---|
54afec33 | 1 | /* |
788d7a15 | 2 | * Private PWG media API definitions for CUPS. |
54afec33 | 3 | * |
788d7a15 | 4 | * Copyright 2009-2016 by Apple Inc. |
54afec33 | 5 | * |
e3101897 | 6 | * Licensed under Apache License v2.0. See the file "LICENSE" for more information. |
54afec33 MS |
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 | ||
54afec33 MS |
29 | /* |
30 | * Functions... | |
31 | */ | |
32 | ||
54afec33 MS |
33 | extern void _pwgGenerateSize(char *keyword, size_t keysize, |
34 | const char *prefix, | |
c7017ecc | 35 | const char *name, |
6961465f MS |
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."); | |
e3586875 MS |
41 | extern const pwg_media_t *_pwgMediaTable(size_t *num_media) _CUPS_PRIVATE; |
42 | extern pwg_media_t *_pwgMediaNearSize(int width, int length, int epsilon) _CUPS_PRIVATE; | |
54afec33 | 43 | |
54afec33 MS |
44 | # ifdef __cplusplus |
45 | } | |
46 | # endif /* __cplusplus */ | |
47 | ||
48 | #endif /* !_CUPS_PWG_PRIVATE_H_ */ |