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