diff options
author | Rocco Rutte <pdmef@gmx.net> | 2006-11-15 18:53:15 +0000 |
---|---|---|
committer | Rocco Rutte <pdmef@gmx.net> | 2006-11-15 18:53:15 +0000 |
commit | 4fda13b63c00fdb95578c4280bfc0904028ed6e2 (patch) | |
tree | 0f4ebfd3bdd8748a61a85c2d6ecb647061d10da0 /mutt_curses.h | |
parent | cfed9aff5023df40fb75fd6f0700281c68bc86ce (diff) |
Unify size and count progress display.
Diffstat (limited to 'mutt_curses.h')
-rw-r--r-- | mutt_curses.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mutt_curses.h b/mutt_curses.h index 8ee3d45a..ac7915e4 100644 --- a/mutt_curses.h +++ b/mutt_curses.h @@ -141,15 +141,23 @@ typedef struct color_line struct color_line *next; } COLOR_LINE; +#define PROG_SIZE (1<<0) /* traffic-based progress */ +#define PROG_MSG (1<<1) /* message-based progress */ + typedef struct { + unsigned short inc; + unsigned short flags; const char* msg; long pos; long size; char sizestr[SHORT_STRING]; } progress_t; -void mutt_progress_bar (progress_t* progress, long pos); +void mutt_progress_init (progress_t* progress, const char *msg, + unsigned short flags, unsigned short inc, + long size); +void mutt_progress_update (progress_t* progress, long pos); extern int *ColorQuote; extern int ColorQuoteUsed; |