aboutsummaryrefslogtreecommitdiff
path: root/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ui.h b/ui.h
new file mode 100644
index 0000000..8035d6f
--- /dev/null
+++ b/ui.h
@@ -0,0 +1,11 @@
+#include <ncurses.h>
+
+typedef struct progress_bar {
+ float total;
+ float current;
+ WINDOW *scr;
+} PROGRESS_BAR;
+
+PROGRESS_BAR* new_progress_bar(WINDOW*, float);
+
+void bar_step(PROGRESS_BAR*, float);