]> git.ipfire.org Git - thirdparty/cups.git/blame - cups/raster-private.h
Import CUPS v1.7.1
[thirdparty/cups.git] / cups / raster-private.h
CommitLineData
a4845881 1/*
61515785 2 * "$Id: raster-private.h 3794 2012-04-23 22:44:16Z msweet $"
a4845881
MS
3 *
4 * Private image library definitions for CUPS.
5 *
6 * Copyright 2007-2011 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/*
f3c17241 39 * min/max macros...
a4845881
MS
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 */
a4845881
MS
48
49
50/*
51 * Prototypes...
52 */
53
54extern int _cupsRasterExecPS(cups_page_header2_t *h,
55 int *preferred_bits,
85dda01c
MS
56 const char *code)
57 __attribute__((nonnull(3)));
58extern void _cupsRasterAddError(const char *f, ...)
59 __attribute__((__format__(__printf__, 1, 2)));
a4845881
MS
60extern void _cupsRasterClearError(void);
61
62#endif /* !_CUPS_RASTER_PRIVATE_H_ */
63
64/*
61515785 65 * End of "$Id: raster-private.h 3794 2012-04-23 22:44:16Z msweet $".
a4845881 66 */