summaryrefslogtreecommitdiffstats
path: root/mutt_curses.h
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2005-09-07 07:44:05 +0000
committerBrendan Cully <brendan@kublai.com>2005-09-07 07:44:05 +0000
commitea8f141237162e655c72b484f937167fbcd937ea (patch)
treee9766b95b21c43bb5293248b71c99ec533322ba7 /mutt_curses.h
parent332f6f296572191789c987a255f6d36054f97e3b (diff)
Display progress meter when uploading/fetching IMAP data. Closes: #1772.
Diffstat (limited to 'mutt_curses.h')
-rw-r--r--mutt_curses.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/mutt_curses.h b/mutt_curses.h
index 0b354ca5..5f2a84ae 100644
--- a/mutt_curses.h
+++ b/mutt_curses.h
@@ -17,6 +17,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/
+#ifndef _MUTT_CURSES_H_
+#define _MUTT_CURSES_H_ 1
+
#ifdef USE_SLANG_CURSES
#ifndef unix /* this symbol is not defined by the hp-ux compiler (sigh) */
@@ -136,6 +139,16 @@ typedef struct color_line
struct color_line *next;
} COLOR_LINE;
+typedef struct
+{
+ const char* msg;
+ long pos;
+ long size;
+ char sizestr[SHORT_STRING];
+} progress_t;
+
+void mutt_progress_bar (progress_t* progress, long pos);
+
extern int *ColorQuote;
extern int ColorQuoteUsed;
extern int ColorDefs[];
@@ -174,3 +187,5 @@ extern int wclear();
extern int waddstr();
extern int wclrtoeol();
#endif
+
+#endif /* _MUTT_CURSES_H_ */