src/ptouch.h

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