1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/ptouch.h Sat Aug 01 12:42:34 2009 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 +/**************************************************************************** 1.5 + * Project: P-touch printer driver library 1.6 + * Developer: Philip Pemberton 1.7 + * Purpose: Make Brother P-touch (PT-series) printers do something besides 1.8 + * gather dust. 1.9 + * 1.10 + * Currently supports: 1.11 + * PT-2450DX 1.12 + ****************************************************************************/ 1.13 + 1.14 +#ifndef PTOUCH_H 1.15 +#define PTOUCH_H 1.16 + 1.17 +typedef struct { 1.18 + FILE *fp; 1.19 + int headMark, size, errorInfo[2]; 1.20 + int mediaWidth, mediaType, mediaLength; 1.21 + int statusType, phaseType, phaseHi, phaseLo; 1.22 + int notification; 1.23 +} pt_Device; 1.24 + 1.25 +// printer functions 1.26 +pt_Device *pt_Initialise(char *path); 1.27 +int pt_GetStatus(pt_Device *dev); 1.28 +void pt_Close(pt_Device *dev); 1.29 + 1.30 +#endif // PTOUCH_H