1 |
greg |
1.1 |
#ifndef lint |
2 |
greg |
2.10 |
static const char RCSid[] = "$Id: devtable.c,v 2.9 2016/03/19 12:51:36 schorsch Exp $"; |
3 |
greg |
1.1 |
#endif |
4 |
|
|
/* |
5 |
|
|
* devtable.c - device table for rview. |
6 |
greg |
2.4 |
*/ |
7 |
|
|
|
8 |
greg |
2.5 |
#include "copyright.h" |
9 |
greg |
2.6 |
|
10 |
greg |
1.1 |
#include "driver.h" |
11 |
|
|
|
12 |
schorsch |
2.9 |
#if !defined(HAS_X11) && !defined(HAS_QT) && !defined(WIN_RVIEW) |
13 |
|
|
/* weird logic ... */ |
14 |
greg |
2.10 |
#define HAS_X11 1 |
15 |
greg |
2.8 |
#endif |
16 |
|
|
|
17 |
greg |
2.10 |
#if HAS_X11 |
18 |
greg |
2.8 |
extern dr_initf_t x11_init; |
19 |
greg |
1.9 |
char dev_default[] = "x11"; |
20 |
schorsch |
2.9 |
#elif defined(HAS_QT) |
21 |
greg |
2.8 |
char dev_default[] = "qt"; |
22 |
schorsch |
2.9 |
#elif defined(WIN_RVIEW) |
23 |
|
|
char dev_default[] = "win"; |
24 |
greg |
2.8 |
#endif |
25 |
greg |
1.6 |
|
26 |
greg |
2.8 |
#ifdef HAS_QT |
27 |
|
|
extern dr_initf_t qt_init; |
28 |
|
|
#endif |
29 |
greg |
1.1 |
|
30 |
schorsch |
2.9 |
#ifdef WIN_RVIEW |
31 |
|
|
extern dr_initf_t win_rvudev_init; |
32 |
|
|
#endif |
33 |
|
|
|
34 |
greg |
1.1 |
struct device devtable[] = { /* supported devices */ |
35 |
greg |
2.4 |
{"slave", "Slave driver", slave_init}, |
36 |
greg |
2.10 |
#if HAS_X11 |
37 |
greg |
1.9 |
{"x11", "X11 color or greyscale display", x11_init}, |
38 |
greg |
2.3 |
{"x11d", "X11 display using stdin/stdout", x11_init}, |
39 |
greg |
2.8 |
#endif |
40 |
|
|
#ifdef HAS_QT |
41 |
|
|
{"qt", "QT display", qt_init}, |
42 |
|
|
#endif |
43 |
schorsch |
2.9 |
#ifdef WIN_RVIEW |
44 |
|
|
{"win", "Windows display", win_rvudev_init}, |
45 |
|
|
#endif |
46 |
greg |
1.1 |
{0} /* terminator */ |
47 |
|
|
}; |