NeoMutt
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
36#ifndef MUTT_PROGRESS_LIB_H
37#define MUTT_PROGRESS_LIB_H
38
39#include <stdbool.h>
40#include <stdio.h>
41
42struct Progress;
43
48{
52};
53
54void progress_free (struct Progress **ptr);
55struct Progress *progress_new (const char *msg, enum ProgressType type, size_t size);
56bool progress_update(struct Progress *progress, size_t pos, int percent);
57
58#endif /* MUTT_PROGRESS_LIB_H */
ProgressType
What kind of operation is this progress tracking?
Definition: lib.h:48
@ MUTT_PROGRESS_NET
Progress tracks bytes, according to $net_inc
Definition: lib.h:51
@ MUTT_PROGRESS_READ
Progress tracks elements, according to $read_inc
Definition: lib.h:49
@ MUTT_PROGRESS_WRITE
Progress tracks elements, according to $write_inc
Definition: lib.h:50
void progress_free(struct Progress **ptr)
Free a Progress Bar.
Definition: progress.c:92
bool progress_update(struct Progress *progress, size_t pos, int percent)
Update the state of the progress bar.
Definition: progress.c:73
struct Progress * progress_new(const char *msg, enum ProgressType type, size_t size)
Create a new Progress Bar.
Definition: progress.c:124