diff options
Diffstat (limited to 'src/progressbar.h')
-rw-r--r-- | src/progressbar.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/progressbar.h b/src/progressbar.h index 3bcc65b..eb47516 100644 --- a/src/progressbar.h +++ b/src/progressbar.h @@ -8,17 +8,27 @@ #include <inttypes.h> #include <sys/types.h> +#define DEFAULT_COLS 80 +#define TERMBUF_SIZE 2048 + +struct cssh_progressbar_pool_t; + typedef struct cssh_progressbar_t { uint64_t min_value; uint64_t max_value; char *label; uint64_t value; + unsigned int total_steps; + unsigned int current_step; + struct cssh_progressbar_pool_t *pool; } cssh_progressbar_t; typedef struct cssh_progressbar_pool_t { size_t capacity; size_t N; cssh_progressbar_t **progressbar; + char *termbuf; + unsigned char cols; } cssh_progressbar_pool_t; int create_progressbar( cssh_progressbar_t *progressbar, uint64_t min_value, uint64_t max_value, size_t size, const char *label_fmt, ... ); |