mirror of
https://github.com/MopriaAlliance/CUPS-for-Android.git
synced 2025-08-03 10:54:38 +08:00
67 lines
1.7 KiB
C
67 lines
1.7 KiB
C
/*
|
|
* "$Id: raster-private.h 3794 2012-04-23 22:44:16Z msweet $"
|
|
*
|
|
* Private image library definitions for CUPS.
|
|
*
|
|
* Copyright 2007-2011 by Apple Inc.
|
|
* Copyright 1993-2006 by Easy Software Products.
|
|
*
|
|
* These coded instructions, statements, and computer programs are the
|
|
* property of Apple Inc. and are protected by Federal copyright
|
|
* law. Distribution and use rights are outlined in the file "LICENSE.txt"
|
|
* which should have been included with this file. If this file is
|
|
* file is missing or damaged, see the license at "http://www.cups.org/".
|
|
*
|
|
* This file is subject to the Apple OS-Developed Software exception.
|
|
*/
|
|
|
|
#ifndef _CUPS_RASTER_PRIVATE_H_
|
|
# define _CUPS_RASTER_PRIVATE_H_
|
|
|
|
/*
|
|
* Include necessary headers...
|
|
*/
|
|
|
|
# include "raster.h"
|
|
# include <cups/cups.h>
|
|
# include <cups/debug-private.h>
|
|
# include <cups/string-private.h>
|
|
# ifdef WIN32
|
|
# include <io.h>
|
|
# include <winsock2.h> /* for htonl() definition */
|
|
# else
|
|
# include <unistd.h>
|
|
# include <fcntl.h>
|
|
# endif /* WIN32 */
|
|
|
|
|
|
/*
|
|
* min/max macros...
|
|
*/
|
|
|
|
# ifndef max
|
|
# define max(a,b) ((a) > (b) ? (a) : (b))
|
|
# endif /* !max */
|
|
# ifndef min
|
|
# define min(a,b) ((a) < (b) ? (a) : (b))
|
|
# endif /* !min */
|
|
|
|
|
|
/*
|
|
* Prototypes...
|
|
*/
|
|
|
|
extern int _cupsRasterExecPS(cups_page_header2_t *h,
|
|
int *preferred_bits,
|
|
const char *code)
|
|
__attribute__((nonnull(3)));
|
|
extern void _cupsRasterAddError(const char *f, ...)
|
|
__attribute__((__format__(__printf__, 1, 2)));
|
|
extern void _cupsRasterClearError(void);
|
|
|
|
#endif /* !_CUPS_RASTER_PRIVATE_H_ */
|
|
|
|
/*
|
|
* End of "$Id: raster-private.h 3794 2012-04-23 22:44:16Z msweet $".
|
|
*/
|