summaryrefslogtreecommitdiffstats
path: root/mutt_curses.h
diff options
context:
space:
mode:
authorRocco Rutte <pdmef@gmx.net>2006-11-15 18:53:15 +0000
committerRocco Rutte <pdmef@gmx.net>2006-11-15 18:53:15 +0000
commit4fda13b63c00fdb95578c4280bfc0904028ed6e2 (patch)
tree0f4ebfd3bdd8748a61a85c2d6ecb647061d10da0 /mutt_curses.h
parentcfed9aff5023df40fb75fd6f0700281c68bc86ce (diff)
Unify size and count progress display.
Diffstat (limited to 'mutt_curses.h')
-rw-r--r--mutt_curses.h10
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;