| 2 |
|
/* |
| 3 |
|
* driver.h - header file for interactive device drivers. |
| 4 |
|
*/ |
| 5 |
+ |
#ifndef _RAD_DRIVER_H_ |
| 6 |
+ |
#define _RAD_DRIVER_H_ |
| 7 |
+ |
#ifdef __cplusplus |
| 8 |
+ |
extern "C" { |
| 9 |
+ |
#endif |
| 10 |
|
|
| 11 |
+ |
|
| 12 |
|
#include "copyright.h" |
| 13 |
|
|
| 14 |
|
struct driver { /* driver functions */ |
| 121 |
|
* to check for input during calls to paintr.) |
| 122 |
|
*/ |
| 123 |
|
|
| 118 |
– |
#ifdef NOPROTO |
| 119 |
– |
|
| 120 |
– |
extern void editline(); |
| 121 |
– |
extern void tocombuf(); |
| 122 |
– |
extern int fromcombuf(); |
| 123 |
– |
extern struct driver *slave_init(); |
| 124 |
– |
extern struct driver *comm_init(); |
| 125 |
– |
extern int new_ctab(); |
| 126 |
– |
extern int get_pixel(); |
| 127 |
– |
extern void make_gmap(); |
| 128 |
– |
extern void set_cmap(); |
| 129 |
– |
extern void map_color(); |
| 130 |
– |
|
| 131 |
– |
#else |
| 124 |
|
/* defined in editline.c */ |
| 125 |
|
extern void editline(char *buf, int (*c_get)(), void (*s_put)()); |
| 126 |
|
extern void tocombuf(char *b, struct driver *d); |
| 135 |
|
extern void set_cmap(BYTE *rmap, BYTE *gmap, BYTE *bmap); |
| 136 |
|
extern void map_color(BYTE rgb[3], COLOR col); |
| 137 |
|
|
| 138 |
+ |
|
| 139 |
+ |
#ifdef __cplusplus |
| 140 |
+ |
} |
| 141 |
|
#endif |
| 142 |
+ |
#endif /* _RAD_DRIVER_H_ */ |
| 143 |
+ |
|