]> git.ipfire.org Git - thirdparty/cups.git/blob - cups/raster-private.h
95e54dc02ba37d3845c65b26b134413fb93c42f7
[thirdparty/cups.git] / cups / raster-private.h
1 /*
2 * "$Id$"
3 *
4 * Private image library definitions for CUPS.
5 *
6 * Copyright 2007-2015 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 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
49
50 /*
51 * Prototypes...
52 */
53
54 extern int _cupsRasterExecPS(cups_page_header2_t *h,
55 int *preferred_bits,
56 const char *code)
57 __attribute__((nonnull(3)));
58 extern void _cupsRasterAddError(const char *f, ...)
59 __attribute__((__format__(__printf__, 1, 2)));
60 extern void _cupsRasterClearError(void);
61
62 #endif /* !_CUPS_RASTER_PRIVATE_H_ */
63
64 /*
65 * End of "$Id$".
66 */