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 * 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
52extern int		_cupsRasterExecPS(cups_page_header2_t *h,
53			                  int *preferred_bits,
54			                  const char *code)
55			                  __attribute__((nonnull(3)));
56extern void		_cupsRasterAddError(const char *f, ...)
57			__attribute__((__format__(__printf__, 1, 2)));
58extern void		_cupsRasterClearError(void);
59
60#endif /* !_CUPS_RASTER_PRIVATE_H_ */
61