chiark / gitweb /
Initial revision
[sw-tools] / src / pres_curses.h
1 /* -*-c-*-
2  *
3  * $Id: pres_curses.h,v 1.1 1999/06/02 16:53:36 mdw Exp $
4  *
5  * Curses-based output presentation
6  *
7  * (c) 1999 EBI
8  */
9
10 /*----- Licensing notice --------------------------------------------------* 
11  *
12  * This file is part of sw-tools.
13  *
14  * sw-tools is free software; you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License as published by
16  * the Free Software Foundation; either version 2 of the License, or
17  * (at your option) any later version.
18  * 
19  * sw-tools is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  * GNU General Public License for more details.
23  * 
24  * You should have received a copy of the GNU General Public License
25  * along with sw-tools; if not, write to the Free Software Foundation,
26  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27  */
28
29 /*----- Revision history --------------------------------------------------* 
30  *
31  * $Log: pres_curses.h,v $
32  * Revision 1.1  1999/06/02 16:53:36  mdw
33  * Initial revision
34  *
35  */
36
37 #ifndef PRES_CURSES_H
38 #define PRES_CURSES_H
39
40 #ifdef __cplusplus
41   extern "C" {
42 #endif
43
44 /*----- Header files ------------------------------------------------------*/
45
46 #ifndef CONFIG_H
47 #  include "config.h"
48 #endif
49
50 #ifndef SW_ARCH_H
51 #  include "sw_arch.h"
52 #endif
53
54 #ifdef HAVE_CURSES
55
56 /*----- Presentation style ------------------------------------------------*/
57
58 extern int curses_ok(void);
59 extern int curses_init(archcons */*a*/);
60 extern void curses_output(archent */*e*/, const char */*p*/, size_t /*sz*/);
61 extern void curses_close(archent */*e*/, int /*ok*/);
62 extern void curses_done(archcons */*a*/);
63 extern void curses_abort(archcons */*a*/);
64
65 #ifdef PRES_LINK
66    static pres pres_curses = {
67      PRES_LINK, "curses",
68      curses_ok, curses_init,
69      curses_output, curses_close,
70      curses_done, curses_abort
71    };
72 #  undef PRES_LINK
73 #  define PRES_LINK &pres_curses
74 #  if PRES_PREFERENCE <= 2
75 #    undef PRES_DEFAULT
76 #    define PRES_DEFAULT &pres_curses
77 #  endif
78 #endif
79
80 /*----- That's all, folks -------------------------------------------------*/
81
82 #endif
83
84 #ifdef __cplusplus
85   }
86 #endif
87
88 #endif