mirror of
https://github.com/git/git.git
synced 2024-11-06 01:03:02 +01:00
dc6a0757c4
This allows for better management of progress "object" existence, as well as making the progress display implementation more independent from its callers. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
12 lines
370 B
C
12 lines
370 B
C
#ifndef PROGRESS_H
|
|
#define PROGRESS_H
|
|
|
|
struct progress;
|
|
|
|
int display_progress(struct progress *progress, unsigned n);
|
|
struct progress *start_progress(const char *title, unsigned total);
|
|
struct progress *start_progress_delay(const char *title, unsigned total,
|
|
unsigned percent_treshold, unsigned delay);
|
|
void stop_progress(struct progress **progress);
|
|
|
|
#endif
|