summaryrefslogtreecommitdiff
path: root/screen.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-06-24 23:04:44 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-06-24 23:14:22 +0200
commitbedc03e69281508ffdb374085225b5ea516c4b13 (patch)
tree3a1dda0f787c95ab3ad307140341c01658e15f54 /screen.h
parent0d50f6b5e8f682fcb34bfac8c21c83f1a246b4dc (diff)
ifpps, flowtop: Move ncurses init and end to common module
ncurses (de-)initialization is duplicated across flowtop and ifpps, so move it to an own module and use it from both tools. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'screen.h')
-rw-r--r--screen.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/screen.h b/screen.h
new file mode 100644
index 0000000..7a647be
--- /dev/null
+++ b/screen.h
@@ -0,0 +1,9 @@
+#ifndef SCREEN_H
+#define SCREEN_H
+
+#include <curses.h>
+
+extern WINDOW *screen_init(bool israw);
+extern void screen_end(void);
+
+#endif /* SCREEN_H */