summaryrefslogtreecommitdiff
path: root/draw/tui.h
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2016-05-08 16:02:01 +0100
committerFreeArtMan <dos21h@gmail.com>2016-05-08 16:02:01 +0100
commite42911405c4bc2f8c097f47d4598baf8522ef3da (patch)
tree9eb767c5e6a4443e8773b18ea76cf4216f6c8758 /draw/tui.h
parent9b95088bddcf1f83e3a8f73f08f49b38ecb0f500 (diff)
downloadradiola-master.tar.gz
radiola-master.zip
Moved source to src directoryHEADmaster
Diffstat (limited to 'draw/tui.h')
-rw-r--r--draw/tui.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/draw/tui.h b/draw/tui.h
deleted file mode 100644
index a84379f..0000000
--- a/draw/tui.h
+++ /dev/null
@@ -1,45 +0,0 @@
-#ifndef __RADIOLA_TUI_H
-#define __RADIOLA_TUI_H
-
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <termios.h>
-#include <unistd.h>
-
-//to draw waterfall
-typedef struct tui_waterfall_t
-{
- int type;
- int h,w;
- uint8_t *buf;
- size_t buf_len;
-} tui_waterfall_t;
-
-typedef struct tui_t
-{
- int ifd, ofd;
- struct termios orig_i, orig_o;
- struct termios raw_i, raw_o;
- tui_waterfall_t *wf;
-} tui_t;
-
-//prepare terminal ui
-int tui_init( tui_t **t );
-//init waterfall
-int tui_waterfall( tui_t **t, tui_waterfall_t **w );
-//first draw, draw all buffer
-int tui_waterfall_draw( tui_waterfall_t *w );
-//redraw only changed lines
-int tui_waterfall_redraw( tui_waterfall_t *w );
-//update params of waterfall and then need to draw not redraw
-int tui_waterfall_update( tui_t *w );
-//push one line of data to buffer
-int tui_waterfall_data( tui_t *w, int len, uint8_t *buf );
-//return color
-uint8_t tui_waterfall_color( uint8_t d );
-//close terminal ui
-int tui_close( tui_t *t );
-
-#endif \ No newline at end of file