| 1 |
– |
/* Copyright (c) 1988 Regents of the University of California */ |
| 2 |
– |
|
| 1 |
|
#ifndef lint |
| 2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
| 2 |
> |
static const char RCSid[] = "$Id$"; |
| 3 |
|
#endif |
| 6 |
– |
|
| 4 |
|
/* |
| 5 |
|
* devtable.c - device table for rview. |
| 9 |
– |
* |
| 10 |
– |
* 3/30/88 |
| 6 |
|
*/ |
| 7 |
|
|
| 8 |
+ |
#include "copyright.h" |
| 9 |
+ |
|
| 10 |
+ |
#include <stdio.h> |
| 11 |
+ |
|
| 12 |
+ |
#include "color.h" |
| 13 |
|
#include "driver.h" |
| 14 |
|
|
| 15 |
< |
extern struct driver *aed_init(), *x_init(), *sun_init(); |
| 15 |
> |
#if !defined(HAS_X11) && !defined(HAS_QT) |
| 16 |
> |
#define HAS_X11 |
| 17 |
> |
#endif |
| 18 |
|
|
| 19 |
+ |
#ifdef HAS_X11 |
| 20 |
+ |
extern dr_initf_t x11_init; |
| 21 |
+ |
char dev_default[] = "x11"; |
| 22 |
+ |
#else |
| 23 |
+ |
char dev_default[] = "qt"; |
| 24 |
+ |
#endif |
| 25 |
+ |
|
| 26 |
+ |
#ifdef HAS_QT |
| 27 |
+ |
extern dr_initf_t qt_init; |
| 28 |
+ |
#endif |
| 29 |
+ |
|
| 30 |
|
struct device devtable[] = { /* supported devices */ |
| 31 |
< |
{"aed", "AED 512 color graphics terminal", aed_init}, |
| 32 |
< |
#ifdef sun |
| 33 |
< |
{"sun", "SunView color or greyscale screen", sun_init}, |
| 31 |
> |
{"slave", "Slave driver", slave_init}, |
| 32 |
> |
#ifdef HAS_X11 |
| 33 |
> |
{"x11", "X11 color or greyscale display", x11_init}, |
| 34 |
> |
{"x11d", "X11 display using stdin/stdout", x11_init}, |
| 35 |
|
#endif |
| 36 |
< |
{"X", "X-window color or greyscale display", x_init}, |
| 36 |
> |
#ifdef HAS_QT |
| 37 |
> |
{"qt", "QT display", qt_init}, |
| 38 |
> |
#endif |
| 39 |
|
{0} /* terminator */ |
| 40 |
|
}; |