68#ifndef MUTT_PROGRESS_LIB_H
69#define MUTT_PROGRESS_LIB_H
88bool progress_update (
struct Progress *progress,
size_t pos,
int percent);
90 __attribute__((__format__(__printf__, 2, 3)));
ProgressType
What kind of operation is this progress tracking?
@ MUTT_PROGRESS_NET
Progress tracks bytes, according to $net_inc
@ MUTT_PROGRESS_READ
Progress tracks elements, according to $read_inc
@ MUTT_PROGRESS_WRITE
Progress tracks elements, according to $write_inc
struct Progress * progress_new(enum ProgressType type, size_t size)
Create a new Progress Bar.
void progress_free(struct Progress **ptr)
Free a Progress Bar.
void progress_set_message(struct Progress *progress, const char *fmt,...) __attribute__((__format__(__printf__
void void progress_set_size(struct Progress *progress, size_t size)
Set the progress size.
bool progress_update(struct Progress *progress, size_t pos, int percent)
Update the state of the progress bar.