/* * S P O O L . H -- Spooler header file/definitions * * * Written: Clive A Stubbings * Image Recognition Systems * 720 Birchwood Boulevard * Birchwood Science Park * Warrington * Cheshire * WA3 7PX * * * Date: 23rd July 1987 * * Modifications * * 3 Oct 1994 jimp Added "textcolour" * 8 Sep 1987 CAS Union'd a printer specific bit into structure * 12 Nov 88 jimp Added "type" to struct spoolfile */ #define SPOOLDIR "/dd/spool" /* * Image type's */ #define SQUARE 1 /* Image is a pixel dump of display area */ #define SQULUT 2 /* Square with preceding 256 byte lut */ #define WOOLZ 3 /* Image in spoolfile is based on woolz objects */ struct spoolfile { int type; FILE *fp; char name[50]; int repcount; /* Repeat count (number of copies) */ union { struct { int imagetype; /* Type of image spooled */ int nlines; /* number of lines */ int ncols; /* number of cols */ int enhance; /* enhance factor */ int pixwidth; /* pixel width */ int linerep; /* Line repeat count */ int margin; /* Margin size */ int textcolour; } laser; } ps; }; typedef struct spoolfile SFILE; extern SFILE *spoolopen(), *lspoolopen(); extern int spoolclose();