]>
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 | * |
788d7a15 MS |
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 | * file is missing or damaged, see the license at "http://www.cups.org/". | |
54afec33 | 11 | * |
788d7a15 | 12 | * This file is subject to the Apple OS-Developed Software exception. |
54afec33 MS |
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 | ||
54afec33 MS |
35 | /* |
36 | * Functions... | |
37 | */ | |
38 | ||
54afec33 MS |
39 | extern void _pwgGenerateSize(char *keyword, size_t keysize, |
40 | const char *prefix, | |
c7017ecc | 41 | const char *name, |
6961465f MS |
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."); | |
a552bd55 | 47 | extern const pwg_media_t *_pwgMediaTable(size_t *num_media); |
c3ebc4c6 | 48 | extern pwg_media_t *_pwgMediaNearSize(int width, int length, int epsilon); |
54afec33 | 49 | |
54afec33 MS |
50 | # ifdef __cplusplus |
51 | } | |
52 | # endif /* __cplusplus */ | |
53 | ||
54 | #endif /* !_CUPS_PWG_PRIVATE_H_ */ |