X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_curses.h;h=5d7b9eaa3c7c3eb87c21e3da7755d8a4d1c4b03f;hp=6e75e5d6a5879472f6c2053d2800edc66bc45dab;hb=4f61fa445bff564984acf29fc91858af0ed2725e;hpb=3e8bb0a04f87021439ed4601a12ed8485eba27d3 diff --git a/mutt_curses.h b/mutt_curses.h index 6e75e5d..5d7b9ea 100644 --- a/mutt_curses.h +++ b/mutt_curses.h @@ -7,6 +7,8 @@ * It's licensed under the GNU General Public License, * please see the file GPL in the top level source directory. */ +#ifndef _MUTT_CURSES_H +#define _MUTT_CURSES_H #ifdef USE_SLANG_CURSES @@ -32,7 +34,7 @@ #include #elif HAVE_NCURSES_NCURSES_H #include -#elif ifdef HAVE_NCURSES_H +#elif HAVE_NCURSES_H #include #else #include @@ -129,6 +131,15 @@ 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[]; @@ -167,3 +178,5 @@ extern int wclear (); extern int waddstr (); extern int wclrtoeol (); #endif + +#endif /* !_MUTT_CURSES_H */