summaryrefslogtreecommitdiff
path: root/draw/tui.c
diff options
context:
space:
mode:
authorFreeArtMan <=>2015-09-22 21:37:16 +0100
committerFreeArtMan <=>2015-09-22 21:37:16 +0100
commit6b85a7d453414d31432e63045581b2602d4abf45 (patch)
treeb99a04923dda28ff9d4607df09179f1f8bd26529 /draw/tui.c
parentfa74c1448e236995a34d767a6e76c3055698fb60 (diff)
downloadradiola-6b85a7d453414d31432e63045581b2602d4abf45.tar.gz
radiola-6b85a7d453414d31432e63045581b2602d4abf45.zip
Added tui interface, updated gitignores, updated makefiles
Diffstat (limited to 'draw/tui.c')
-rw-r--r--draw/tui.c65
1 files changed, 65 insertions, 0 deletions
diff --git a/draw/tui.c b/draw/tui.c
index e69de29..5f9b9c7 100644
--- a/draw/tui.c
+++ b/draw/tui.c
@@ -0,0 +1,65 @@
+#include "tui.h"
+
+//prepare terminal ui
+int tui_init( tui_t *t )
+{
+ int ret = -1;
+ //should be empty pointer
+ if (t != NULL)
+ return -1;
+ return ret;
+}
+
+
+//init waterfall
+int tui_waterfall( tui_t *t, tui_waterfall_t *w )
+{
+ int ret=-1;
+ //waterfall should be NULL
+ if ( w != NULL )
+ return -1;
+ return ret;
+}
+
+
+//first draw, draw all buffer
+int tui_waterfall_draw( tui_waterfall_t *w )
+{
+ int ret = -1;
+ return ret;
+}
+
+
+//redraw only changed lines
+int tui_waterfall_redraw( tui_waterfall_t *w )
+{
+ int ret = -1;
+ return ret;
+}
+
+
+//update params of waterfall and then need to draw not redraw
+int tui_waterfall_update( tui_waterfall_t *w )
+{
+ int ret = -1;
+ return ret;
+}
+
+
+//push one line of data to buffer
+int tui_waterfall_data( tui_waterfall_t *w, size_t *len, size_t *buf )
+{
+ int ret = -1;
+ return ret;
+}
+
+
+//close terminal ui
+int tui_close( tui_t *t )
+{
+ int ret = -1;
+ //shouldnt be empty pointer
+ if ( t == NULL )
+ return -1;
+ return ret;
+}