NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
lib.h
Go to the documentation of this file.
1 
34 #ifndef MUTT_PROGRESS_LIB_H
35 #define MUTT_PROGRESS_LIB_H
36 
37 #include <stdio.h>
38 
39 struct Progress;
40 
45 {
49 };
50 
51 void progress_free (struct Progress **ptr);
52 struct Progress *progress_new (const char *msg, enum ProgressType type, size_t size);
53 void progress_update(struct Progress *progress, size_t pos, int percent);
54 
55 #endif /* MUTT_PROGRESS_LIB_H */
size_t size
Total expected size.
Definition: progress.c:53
ProgressType
What kind of operation is this progress tracking?
Definition: lib.h:44
Progress tracks elements, according to $read_inc
Definition: lib.h:46
A Progress Bar.
Definition: progress.c:47
size_t pos
Current postion.
Definition: progress.c:52
char msg[1024]
Message to display.
Definition: progress.c:50
Progress tracks bytes, according to $net_inc
Definition: lib.h:48
void progress_free(struct Progress **ptr)
Free a Progress Bar.
Definition: progress.c:228
void progress_update(struct Progress *progress, size_t pos, int percent)
Update the state of the progress bar.
Definition: progress.c:175
Progress tracks elements, according to $write_inc
Definition: lib.h:47
struct Progress * progress_new(const char *msg, enum ProgressType type, size_t size)
Create a new Progress Bar.
Definition: progress.c:246