a02014bb4c
Fix an inconsistency introduced in dc6a0757c4
(make struct progress
an opaque type, 2007-10-30) and rename the "progress" parameters to
stop_progress{,_msg}() to "p_progress". Now these match the
corresponding parameters in the *.c code.
While we're at it let's move the definition of the former below the
latter, a subsequent change will start defining stop_progress() in
terms of stop_progress_msg(). Let's also remove the excess whitespace
at the end of the file.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
24 lines
771 B
C
24 lines
771 B
C
#ifndef PROGRESS_H
|
|
#define PROGRESS_H
|
|
|
|
struct progress;
|
|
|
|
#ifdef GIT_TEST_PROGRESS_ONLY
|
|
|
|
extern int progress_testing;
|
|
extern uint64_t progress_test_ns;
|
|
void progress_test_force_update(void);
|
|
|
|
#endif
|
|
|
|
void display_throughput(struct progress *progress, uint64_t total);
|
|
void display_progress(struct progress *progress, uint64_t n);
|
|
struct progress *start_progress(const char *title, uint64_t total);
|
|
struct progress *start_sparse_progress(const char *title, uint64_t total);
|
|
struct progress *start_delayed_progress(const char *title, uint64_t total);
|
|
struct progress *start_delayed_sparse_progress(const char *title,
|
|
uint64_t total);
|
|
void stop_progress_msg(struct progress **p_progress, const char *msg);
|
|
void stop_progress(struct progress **p_progress);
|
|
#endif
|