1 /* External/Public TUI Header File */
22 /* Opaque data type */
25 Opaque (*OpaqueFuncPtr) PARAMS ((va_list));
26 typedef char **OpaqueList;
27 typedef OpaqueList OpaquePtr;
29 /* Generic function pointer */
30 typedef void (*TuiVoidFuncPtr) PARAMS ((va_list));
31 typedef int (*TuiIntFuncPtr) PARAMS ((va_list));
33 typedef Opaque (*TuiOpaqueFuncPtr) PARAMS ((va_list));
35 typedef OpaqueFuncPtr TuiOpaqueFuncPtr;
37 extern Opaque vcatch_errors PARAMS ((OpaqueFuncPtr,...));
38 extern Opaque va_catch_errors PARAMS ((OpaqueFuncPtr, va_list));
40 extern void strcat_to_buf PARAMS ((char *, int, char *));
41 extern void strcat_to_buf_with_fmt PARAMS ((char *, int, char *,...));
43 /* Types of error returns */
49 TuiStatus, *TuiStatusPtr;
51 /* Types of windows */
58 /* This must ALWAYS be AFTER the major windows last */
60 /* auxillary windows */
64 /* This must ALWAYS be next to last */
66 UNDEFINED_WIN /* LAST */
68 TuiWinType, *TuiWinTypePtr;
70 /* This is a point definition */
71 typedef struct _TuiPoint
75 TuiPoint, *TuiPointPtr;
77 /* Generic window information */
78 typedef struct _TuiGenWinInfo
80 WINDOW *handle; /* window handle */
81 TuiWinType type; /* type of window */
82 int width; /* window width */
83 int height; /* window height */
84 TuiPoint origin; /* origin of window */
85 OpaquePtr content; /* content of window */
86 int contentSize; /* Size of content (# of elements) */
87 int contentInUse; /* Can it be used, or is it already used? */
88 int viewportHeight; /* viewport height */
89 int lastVisibleLine; /* index of last visible line */
90 int isVisible; /* whether the window is visible or not */
92 TuiGenWinInfo, *TuiGenWinInfoPtr;
94 /* GENERAL TUI FUNCTIONS */
96 extern void tuiInit PARAMS ((char *argv0));
97 extern void tuiInitWindows PARAMS ((void));
98 extern void tuiResetScreen PARAMS ((void));
99 extern void tuiCleanUp PARAMS ((void));
100 extern void tuiError PARAMS ((char *, int));
101 extern void tui_vError PARAMS ((va_list));
102 extern void tuiFree PARAMS ((char *));
103 extern Opaque tuiDo PARAMS ((TuiOpaqueFuncPtr,...));
104 extern Opaque tuiDoAndReturnToTop PARAMS ((TuiOpaqueFuncPtr,...));
105 extern Opaque tuiGetLowDisassemblyAddress PARAMS ((Opaque, Opaque));
106 extern Opaque tui_vGetLowDisassemblyAddress PARAMS ((va_list));
107 extern void tui_vSelectSourceSymtab PARAMS ((va_list));
110 extern void tui_vCheckDataValues PARAMS ((va_list));
113 extern void tui_vStartNewLines PARAMS ((va_list));
116 extern void tui_vAddWinToLayout PARAMS ((va_list));
117 extern TuiStatus tui_vSetLayoutTo PARAMS ((va_list));
120 extern void tuiDisplayMainFunction PARAMS ((void));
121 extern void tuiUpdateAllExecInfos PARAMS ((void));
122 extern void tuiUpdateOnEnd PARAMS ((void));
123 extern void tui_vAllSetHasBreakAt PARAMS ((va_list));
124 extern void tui_vUpdateSourceWindowsWithAddr PARAMS ((va_list));
127 extern void tui_vShowFrameInfo PARAMS ((va_list));
128 extern void tui_vUpdateLocatorFilename PARAMS ((va_list));