]> git.ipfire.org Git - thirdparty/cups.git/blob - cups/raster-private.h
License change: Apache License, Version 2.0.
[thirdparty/cups.git] / cups / raster-private.h
1 /*
2 * Private image library definitions for CUPS.
3 *
4 * Copyright 2007-2015 by Apple Inc.
5 * Copyright 1993-2006 by Easy Software Products.
6 *
7 * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
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 /*
31 * min/max macros...
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 */
40
41
42 /*
43 * Prototypes...
44 */
45
46 extern int _cupsRasterExecPS(cups_page_header2_t *h,
47 int *preferred_bits,
48 const char *code)
49 __attribute__((nonnull(3)));
50 extern void _cupsRasterAddError(const char *f, ...)
51 __attribute__((__format__(__printf__, 1, 2)));
52 extern void _cupsRasterClearError(void);
53
54 #endif /* !_CUPS_RASTER_PRIVATE_H_ */