]> arthur.barton.de Git - netatalk.git/blob - etc/papd/file.h
Initial patch for authenticated printing. Requires LaserWriter 8.5.1 or
[netatalk.git] / etc / papd / file.h
1 /*
2  * Copyright (c) 1990,1991 Regents of The University of Michigan.
3  * All Rights Reserved.  See COPYRIGHT.
4  */
5
6 struct papfile {
7     int                 pf_state;
8     struct state        *pf_xstate;
9     int                 pf_bufsize;
10     int                 pf_datalen;
11     char                *pf_buf;
12     char                *pf_data;
13 };
14
15 #define PF_BOT          (1<<0)
16 #define PF_EOF          (1<<1)
17 #define PF_QUERY        (1<<2)
18
19 #define CONSUME( pf, len )  {   (pf)->pf_data += (len); \
20                                 (pf)->pf_datalen -= (len); \
21                                 if ((pf)->pf_datalen <= 0) { \
22                                     (pf)->pf_data = (pf)->pf_buf; \
23                                     (pf)->pf_datalen = 0; \
24                                 } \
25                             }
26
27 #define PF_MORESPACE    1024