]>
Commit | Line | Data |
---|---|---|
a4845881 | 1 | /* |
6e5a57e8 | 2 | * Private image library definitions for CUPS. |
a4845881 | 3 | * |
6e5a57e8 MS |
4 | * Copyright 2007-2015 by Apple Inc. |
5 | * Copyright 1993-2006 by Easy Software Products. | |
a4845881 | 6 | * |
e3101897 | 7 | * Licensed under Apache License v2.0. See the file "LICENSE" for more information. |
a4845881 MS |
8 | */ |
9 | ||
10 | #ifndef _CUPS_RASTER_PRIVATE_H_ | |
11 | # define _CUPS_RASTER_PRIVATE_H_ | |
12 | ||
13 | /* | |
14 | * Include necessary headers... | |
15 | */ | |
16 | ||
17 | # include "raster.h" | |
18 | # include <cups/cups.h> | |
19 | # include <cups/debug-private.h> | |
20 | # include <cups/string-private.h> | |
21 | # ifdef WIN32 | |
22 | # include <io.h> | |
23 | # include <winsock2.h> /* for htonl() definition */ | |
24 | # else | |
25 | # include <unistd.h> | |
26 | # include <fcntl.h> | |
27 | # endif /* WIN32 */ | |
28 | ||
29 | ||
30 | /* | |
f3c17241 | 31 | * min/max macros... |
a4845881 MS |
32 | */ |
33 | ||
34 | # ifndef max | |
35 | # define max(a,b) ((a) > (b) ? (a) : (b)) | |
36 | # endif /* !max */ | |
37 | # ifndef min | |
38 | # define min(a,b) ((a) < (b) ? (a) : (b)) | |
39 | # endif /* !min */ | |
a4845881 MS |
40 | |
41 | ||
42 | /* | |
43 | * Prototypes... | |
44 | */ | |
45 | ||
46 | extern int _cupsRasterExecPS(cups_page_header2_t *h, | |
47 | int *preferred_bits, | |
85dda01c MS |
48 | const char *code) |
49 | __attribute__((nonnull(3))); | |
50 | extern void _cupsRasterAddError(const char *f, ...) | |
51 | __attribute__((__format__(__printf__, 1, 2))); | |
a4845881 MS |
52 | extern void _cupsRasterClearError(void); |
53 | ||
54 | #endif /* !_CUPS_RASTER_PRIVATE_H_ */ |