File: lp.h

package info (click to toggle)
elvis 2.1i-3
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 4,120 kB
  • ctags: 5,838
  • sloc: ansic: 53,854; sh: 811; makefile: 263
file content (27 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* lp.h */
/* Copyright 1995 by Steve Kirkendall */

#ifdef FEATURE_LPR

typedef struct
{
    char *name;				/* printer type, e.g. "epson" */
    int  minorno;			/* value to pass to `before' */
    BOOLEAN spooled;			/* uses lpout spooler */
    void (*before) P_((int minorno, void (*draw)(_CHAR_ ch)));/* called before print job */
    void (*fontch) P_((_char_ font, _CHAR_ ch)); /* output a single char */
    void (*page) P_((int linesleft));	/* called at end of each page */
    void (*after) P_((int linesleft));	/* called at end of print job */
} LPTYPE;

BEGIN_EXTERNC
extern RESULT lp P_((WINDOW win, MARK top, MARK bottom, BOOLEAN force));
END_EXTERNC
extern LPTYPE lpepson, lppana, lpibm, lphp, lpdumb;
extern LPTYPE lpcr, lpbs;
extern LPTYPE lpps, lpps2;
#ifdef GUI_WIN32
extern LPTYPE lpwindows;
#endif

#endif /* FEATURE_LPR */