summaryrefslogtreecommitdiff
path: root/src/progressbar.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/progressbar.h')
-rw-r--r--src/progressbar.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/progressbar.h b/src/progressbar.h
index 71eaed1..3bcc65b 100644
--- a/src/progressbar.h
+++ b/src/progressbar.h
@@ -12,6 +12,7 @@ typedef struct cssh_progressbar_t {
uint64_t min_value;
uint64_t max_value;
char *label;
+ uint64_t value;
} cssh_progressbar_t;
typedef struct cssh_progressbar_pool_t {
@@ -26,6 +27,8 @@ void free_progressbar( cssh_progressbar_t *progressbar );
void set_value_of_progressbar( cssh_progressbar_t *progressbar, uint64_t value );
+void redraw_progressbar( cssh_progressbar_t *progressbar );
+
int create_progressbar_pool( cssh_progressbar_pool_t *pool, size_t initial_size );
void free_progressbar_pool( cssh_progressbar_pool_t *pool );
@@ -34,4 +37,6 @@ int append_progressbar_to_pool( cssh_progressbar_pool_t *pool, cssh_progressbar_
int remove_progressbar_from_pool( cssh_progressbar_pool_t *pool, cssh_progressbar_t *progressbar );
+void redraw_progressbars( cssh_progressbar_pool_t *pool );
+
#endif