include libgen.h for basename
[elinks.git] / src / dialogs / progress.h
blobf97503dd046a215d1fdf3ce2c7184355ee8bce39
1 #ifndef EL__DIALOGS_PROGRESS_H
2 #define EL__DIALOGS_PROGRESS_H
4 struct progress;
5 struct terminal;
7 unsigned char *
8 get_progress_msg(struct progress *progress, struct terminal *term,
9 int wide, int full, unsigned char *separator);
12 unsigned char *
13 get_upload_progress_msg(struct progress *progress, struct terminal *term,
14 int wide, int full, unsigned char *separator);
16 /* Draws a progress bar meter or progress coloured text depending on whether
17 * @text is NULL. If @meter_color is NULL dialog.meter color is used. */
18 void
19 draw_progress_bar(struct progress *progress, struct terminal *term,
20 int x, int y, int width,
21 unsigned char *text, struct color_pair *meter_color);
23 #endif