Sat, 01 Aug 2009 12:42:34 +0100
add new code
1 /****************************************************************************
2 * Project: P-touch printer driver library
3 * Developer: Philip Pemberton
4 * Purpose: Make Brother P-touch (PT-series) printers do something besides
5 * gather dust.
6 *
7 * Currently supports:
8 * PT-2450DX
9 ****************************************************************************/
11 #ifndef PTOUCH_H
12 #define PTOUCH_H
14 typedef struct {
15 FILE *fp;
16 int headMark, size, errorInfo[2];
17 int mediaWidth, mediaType, mediaLength;
18 int statusType, phaseType, phaseHi, phaseLo;
19 int notification;
20 } pt_Device;
22 // printer functions
23 pt_Device *pt_Initialise(char *path);
24 int pt_GetStatus(pt_Device *dev);
25 void pt_Close(pt_Device *dev);
27 #endif // PTOUCH_H