]> git.ipfire.org Git - thirdparty/cups.git/blame - cups/raster-private.h
More tweaks for IPP Everywhere support in web interface.
[thirdparty/cups.git] / cups / raster-private.h
CommitLineData
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 *
6e5a57e8
MS
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
57b7b66b 11 * missing or damaged, see the license at "http://www.cups.org/".
a4845881 12 *
6e5a57e8 13 * This file is subject to the Apple OS-Developed Software exception.
a4845881
MS
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/*
f3c17241 37 * min/max macros...
a4845881
MS
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 */
a4845881
MS
46
47
48/*
49 * Prototypes...
50 */
51
52extern int _cupsRasterExecPS(cups_page_header2_t *h,
53 int *preferred_bits,
85dda01c
MS
54 const char *code)
55 __attribute__((nonnull(3)));
56extern void _cupsRasterAddError(const char *f, ...)
57 __attribute__((__format__(__printf__, 1, 2)));
a4845881
MS
58extern void _cupsRasterClearError(void);
59
60#endif /* !_CUPS_RASTER_PRIVATE_H_ */