]>
Commit | Line | Data |
---|---|---|
a4845881 MS |
1 | /* |
2 | * "$Id$" | |
3 | * | |
4 | * Private image library definitions for CUPS. | |
5 | * | |
6 | * Copyright 2007-2011 by Apple Inc. | |
7 | * Copyright 1993-2006 by Easy Software Products. | |
8 | * | |
9 | * These coded instructions, statements, and computer programs are the | |
10 | * property of Apple Inc. and are protected by Federal copyright | |
11 | * law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
12 | * which should have been included with this file. If this file is | |
13 | * file is missing or damaged, see the license at "http://www.cups.org/". | |
14 | * | |
15 | * This file is subject to the Apple OS-Developed Software exception. | |
16 | */ | |
17 | ||
18 | #ifndef _CUPS_RASTER_PRIVATE_H_ | |
19 | # define _CUPS_RASTER_PRIVATE_H_ | |
20 | ||
21 | /* | |
22 | * Include necessary headers... | |
23 | */ | |
24 | ||
25 | # include "raster.h" | |
26 | # include <cups/cups.h> | |
27 | # include <cups/debug-private.h> | |
28 | # include <cups/string-private.h> | |
29 | # ifdef WIN32 | |
30 | # include <io.h> | |
31 | # include <winsock2.h> /* for htonl() definition */ | |
32 | # else | |
33 | # include <unistd.h> | |
34 | # include <fcntl.h> | |
35 | # endif /* WIN32 */ | |
36 | ||
37 | ||
38 | /* | |
39 | * min/max/abs macros... | |
40 | */ | |
41 | ||
42 | # ifndef max | |
43 | # define max(a,b) ((a) > (b) ? (a) : (b)) | |
44 | # endif /* !max */ | |
45 | # ifndef min | |
46 | # define min(a,b) ((a) < (b) ? (a) : (b)) | |
47 | # endif /* !min */ | |
48 | # ifndef abs | |
49 | # define abs(a) ((a) < 0 ? -(a) : (a)) | |
50 | # endif /* !abs */ | |
51 | ||
52 | ||
53 | /* | |
54 | * Prototypes... | |
55 | */ | |
56 | ||
57 | extern int _cupsRasterExecPS(cups_page_header2_t *h, | |
58 | int *preferred_bits, | |
85dda01c MS |
59 | const char *code) |
60 | __attribute__((nonnull(3))); | |
61 | extern void _cupsRasterAddError(const char *f, ...) | |
62 | __attribute__((__format__(__printf__, 1, 2))); | |
a4845881 MS |
63 | extern void _cupsRasterClearError(void); |
64 | ||
65 | #endif /* !_CUPS_RASTER_PRIVATE_H_ */ | |
66 | ||
67 | /* | |
68 | * End of "$Id$". | |
69 | */ |