1 /* External/Public TUI Header File */
22 /* Opaque data type */
24 typedef Opaque (*OpaqueFuncPtr) PARAMS ((va_list));
25 typedef char **OpaqueList;
26 typedef OpaqueList OpaquePtr;
28 /* Generic function pointer */
29 typedef void (*TuiVoidFuncPtr) PARAMS ((va_list));
30 typedef int (*TuiIntFuncPtr) PARAMS ((va_list));
32 typedef Opaque (*TuiOpaqueFuncPtr) PARAMS ((va_list));
34 typedef OpaqueFuncPtr TuiOpaqueFuncPtr;
36 extern Opaque vcatch_errors PARAMS ((OpaqueFuncPtr, ...));
37 extern Opaque va_catch_errors PARAMS ((OpaqueFuncPtr, va_list));
39 extern void strcat_to_buf PARAMS ((char *, int, char *));
40 extern void strcat_to_buf_with_fmt PARAMS ((char *, int, char *, ...));
42 /* Types of error returns */
46 } TuiStatus, *TuiStatusPtr;
48 /* Types of windows */
54 /* This must ALWAYS be AFTER the major windows last */
56 /* auxillary windows */
60 /* This must ALWAYS be next to last */
62 UNDEFINED_WIN /* LAST */
63 } TuiWinType, *TuiWinTypePtr;
65 /* This is a point definition */
66 typedef struct _TuiPoint {
68 } TuiPoint, *TuiPointPtr;
70 /* Generic window information */
71 typedef struct _TuiGenWinInfo {
72 WINDOW *handle; /* window handle */
73 TuiWinType type; /* type of window */
74 int width; /* window width */
75 int height; /* window height */
76 TuiPoint origin; /* origin of window */
77 OpaquePtr content; /* content of window */
78 int contentSize; /* Size of content (# of elements) */
79 int contentInUse; /* Can it be used, or is it already used? */
80 int viewportHeight; /* viewport height */
81 int lastVisibleLine; /* index of last visible line */
82 int isVisible; /* whether the window is visible or not */
83 } TuiGenWinInfo, *TuiGenWinInfoPtr;
85 /* GENERAL TUI FUNCTIONS */
87 extern void tuiInit PARAMS ((char *argv0));
88 extern void tuiInitWindows PARAMS ((void));
89 extern void tuiResetScreen PARAMS ((void));
90 extern void tuiCleanUp PARAMS ((void));
91 extern void tuiError PARAMS ((char *, int));
92 extern void tui_vError PARAMS ((va_list));
93 extern void tuiFree PARAMS ((char *));
94 extern Opaque tuiDo PARAMS ((TuiOpaqueFuncPtr, ...));
95 extern Opaque tuiDoAndReturnToTop PARAMS ((TuiOpaqueFuncPtr, ...));
96 extern Opaque tuiGetLowDisassemblyAddress PARAMS ((Opaque, Opaque));
97 extern Opaque tui_vGetLowDisassemblyAddress PARAMS ((va_list));
98 extern void tui_vSelectSourceSymtab PARAMS ((va_list));
101 extern void tui_vCheckDataValues PARAMS ((va_list));
104 extern void tui_vStartNewLines PARAMS ((va_list));
107 extern void tui_vAddWinToLayout PARAMS ((va_list));
108 extern TuiStatus tui_vSetLayoutTo PARAMS ((va_list));
111 extern void tuiDisplayMainFunction PARAMS ((void));
112 extern void tuiUpdateAllExecInfos PARAMS ((void));
113 extern void tuiUpdateOnEnd PARAMS ((void));
114 extern void tui_vAllSetHasBreakAt PARAMS ((va_list));
115 extern void tui_vUpdateSourceWindowsWithAddr PARAMS ((va_list));
118 extern void tui_vShowFrameInfo PARAMS ((va_list));
119 extern void tui_vUpdateLocatorFilename PARAMS ((va_list));