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