* tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
[deliverable/binutils-gdb.git] / gdb / tui / tui.h
CommitLineData
f377b406
SC
1/* External/Public TUI Header File.
2 Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
3 Contributed by Hewlett-Packard Company.
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
c906108c
SS
21
22#ifndef TUI_H
23#define TUI_H
c906108c 24
c906108c 25#include <stdarg.h>
2a5127c4 26#include <string.h>
c906108c
SS
27#include "ansidecl.h"
28
29#if defined(reg)
30#undef reg
31#endif
32#if defined(chtype)
33#undef chtype
34#endif
35
36/* Opaque data type */
37typedef char *Opaque;
c5aa993b 38typedef
507f3c78 39Opaque (*OpaqueFuncPtr) (va_list);
c5aa993b
JM
40 typedef char **OpaqueList;
41 typedef OpaqueList OpaquePtr;
c906108c
SS
42
43/* Generic function pointer */
507f3c78
KB
44 typedef void (*TuiVoidFuncPtr) (va_list);
45 typedef int (*TuiIntFuncPtr) (va_list);
c906108c 46/*
507f3c78 47 typedef Opaque (*TuiOpaqueFuncPtr) (va_list);
c5aa993b
JM
48 */
49 typedef OpaqueFuncPtr TuiOpaqueFuncPtr;
c906108c 50
a14ed312
KB
51extern Opaque vcatch_errors (OpaqueFuncPtr, ...);
52extern Opaque va_catch_errors (OpaqueFuncPtr, va_list);
c906108c 53
a14ed312
KB
54extern void strcat_to_buf (char *, int, char *);
55extern void strcat_to_buf_with_fmt (char *, int, char *, ...);
c906108c
SS
56
57/* Types of error returns */
c5aa993b
JM
58 typedef enum
59 {
60 TUI_SUCCESS,
61 TUI_FAILURE
62 }
63TuiStatus, *TuiStatusPtr;
c906108c
SS
64
65/* Types of windows */
c5aa993b
JM
66 typedef enum
67 {
68 SRC_WIN = 0,
69 DISASSEM_WIN,
70 DATA_WIN,
71 CMD_WIN,
72 /* This must ALWAYS be AFTER the major windows last */
73 MAX_MAJOR_WINDOWS,
74 /* auxillary windows */
75 LOCATOR_WIN,
76 EXEC_INFO_WIN,
77 DATA_ITEM_WIN,
78 /* This must ALWAYS be next to last */
79 MAX_WINDOWS,
80 UNDEFINED_WIN /* LAST */
81 }
82TuiWinType, *TuiWinTypePtr;
c906108c
SS
83
84/* This is a point definition */
c5aa993b
JM
85 typedef struct _TuiPoint
86 {
87 int x, y;
88 }
89TuiPoint, *TuiPointPtr;
c906108c 90
c906108c
SS
91/* GENERAL TUI FUNCTIONS */
92/* tui.c */
a14ed312 93extern void tuiFree (char *);
39db33d6
SC
94extern CORE_ADDR tuiGetLowDisassemblyAddress (CORE_ADDR, CORE_ADDR);
95
96/* Initialize readline and configure the keymap for the switching
97 key shortcut. */
98extern void tui_initialize_readline (void);
99
100/* Enter in the tui mode (curses). */
101extern void tui_enable (void);
102
103/* Leave the tui mode. */
104extern void tui_disable (void);
c906108c
SS
105
106/* tuiDataWin.c */
a14ed312 107extern void tui_vCheckDataValues (va_list);
c906108c
SS
108
109/* tuiIO.c */
a14ed312 110extern void tui_vStartNewLines (va_list);
c906108c
SS
111
112/* tuiLayout.c */
a14ed312
KB
113extern void tui_vAddWinToLayout (va_list);
114extern TuiStatus tui_vSetLayoutTo (va_list);
c906108c
SS
115
116/* tuiSourceWin.c */
a14ed312
KB
117extern void tuiDisplayMainFunction (void);
118extern void tuiUpdateAllExecInfos (void);
119extern void tuiUpdateOnEnd (void);
120extern void tui_vAllSetHasBreakAt (va_list);
121extern void tui_vUpdateSourceWindowsWithAddr (va_list);
c906108c
SS
122
123/* tuiStack.c */
a14ed312
KB
124extern void tui_vShowFrameInfo (va_list);
125extern void tui_vUpdateLocatorFilename (va_list);
c906108c 126#endif /* TUI_H */
This page took 0.301169 seconds and 4 git commands to generate.