23 |
|
extern int (*wrnvec)(), (*errvec)(), (*cmdvec)(); |
24 |
|
|
25 |
|
extern struct driver *comm_init(); /* stream interface */ |
26 |
+ |
/* magic numbers for verification */ |
27 |
+ |
#define COM_SENDM 0x6f37 |
28 |
+ |
#define COM_RECVM 0x51da |
29 |
|
/* stream commands */ |
30 |
|
#define COM_CLEAR 0 |
31 |
|
#define COM_PAINTR 1 |
51 |
|
|
52 |
|
/* |
53 |
|
* struct driver * |
54 |
< |
* dname_init(name) |
55 |
< |
* char *name; |
54 |
> |
* dname_init(name, id) |
55 |
> |
* char *name, *id; |
56 |
|
* { |
57 |
|
* Initialize device and return pointer to driver |
58 |
|
* functions. Returns NULL if an error occurred. |
59 |
< |
* The name string is used to identify the client. |
59 |
> |
* The name string identifies the driver, |
60 |
> |
* and the id string identifies the client. |
61 |
|
* A device can be open by at most one client. |
62 |
|
* Be verbose in error reports; call stderr_v(). |
63 |
|
* If device has its own error output, set errvec, |