summaryrefslogtreecommitdiffstats
path: root/TraceScreen.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2016-01-12 06:00:58 -0200
committerHisham Muhammad <hisham@gobolinux.org>2016-01-12 06:00:58 -0200
commit466d4da0c6e7255a38b8de3c3b9dc0373805cc41 (patch)
tree536ca897e2687e51961e9dffffd073f02aa07acb /TraceScreen.h
parentfaf28606696ad023c786e8b63372bfa498b0974a (diff)
refactor *Screen classes, add InfoScreen superclass
Diffstat (limited to 'TraceScreen.h')
-rw-r--r--TraceScreen.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/TraceScreen.h b/TraceScreen.h
index bb5ad4cf..8845c51a 100644
--- a/TraceScreen.h
+++ b/TraceScreen.h
@@ -9,20 +9,32 @@ Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
-#include "Process.h"
-#include "Panel.h"
+#include "InfoScreen.h"
typedef struct TraceScreen_ {
- Process* process;
- Panel* display;
+ InfoScreen super;
bool tracing;
+ int fdpair[2];
+ int child;
+ FILE* strace;
+ int fd_strace;
+ bool contLine;
+ bool follow;
} TraceScreen;
+extern InfoScreenClass TraceScreen_class;
+
TraceScreen* TraceScreen_new(Process* process);
-void TraceScreen_delete(TraceScreen* this);
+void TraceScreen_delete(Object* cast);
+
+void TraceScreen_draw(InfoScreen* this);
+
+bool TraceScreen_forkTracer(TraceScreen* this);
+
+void TraceScreen_updateTrace(InfoScreen* super);
-void TraceScreen_run(TraceScreen* this);
+bool TraceScreen_onKey(InfoScreen* super, int ch);
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy