diff options
Diffstat (limited to 'cups/file-private.h')
-rw-r--r-- | cups/file-private.h | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/cups/file-private.h b/cups/file-private.h index 1f4db798..6789283e 100644 --- a/cups/file-private.h +++ b/cups/file-private.h @@ -6,7 +6,7 @@ * our own file functions allows us to provide transparent support of * different line endings, gzip'd print files, PPD files, etc. * - * Copyright 2007-2017 by Apple Inc. + * Copyright 2007-2018 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * These coded instructions, statements, and computer programs are the @@ -31,13 +31,10 @@ # include <stdarg.h> # include <fcntl.h> -# ifdef HAVE_LIBZ -# include <zlib.h> -# endif /* HAVE_LIBZ */ -# ifdef WIN32 +# ifdef _WIN32 # include <io.h> # include <sys/locking.h> -# endif /* WIN32 */ +# endif /* _WIN32 */ /* @@ -88,30 +85,6 @@ typedef enum /**** _cupsFileCheck file type values ****/ typedef void (*_cups_fc_func_t)(void *context, _cups_fc_result_t result, const char *message); -struct _cups_file_s /**** CUPS file structure... ****/ - -{ - int fd; /* File descriptor */ - char mode, /* Mode ('r' or 'w') */ - compressed, /* Compression used? */ - is_stdio, /* stdin/out/err? */ - eof, /* End of file? */ - buf[4096], /* Buffer */ - *ptr, /* Pointer into buffer */ - *end; /* End of buffer data */ - off_t pos, /* Position in file */ - bufpos; /* File position for start of buffer */ - -#ifdef HAVE_LIBZ - z_stream stream; /* (De)compression stream */ - Bytef cbuf[4096]; /* (De)compression buffer */ - uLong crc; /* (De)compression CRC */ -#endif /* HAVE_LIBZ */ - - char *printf_buffer; /* cupsFilePrintf buffer */ - size_t printf_size; /* Size of cupsFilePrintf buffer */ -}; - /* * Prototypes... @@ -125,6 +98,7 @@ extern _cups_fc_result_t _cupsFileCheck(const char *filename, extern void _cupsFileCheckFilter(void *context, _cups_fc_result_t result, const char *message); +extern int _cupsFilePeekAhead(cups_file_t *fp, int ch); # ifdef __cplusplus } |