diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-03 18:13:22 -0500 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-04 14:17:45 -0700 |
commit | eea1ff6a83a318d7749110baa81c249a6faea8ef (patch) | |
tree | 05867047169d211f85815b3ecb577d74c08c99b6 /subsurface-core/git-access.c | |
parent | 8b710f4d6cde00bf598031fafa9e3f1d8c2708a5 (diff) | |
download | subsurface-eea1ff6a83a318d7749110baa81c249a6faea8ef.tar.gz |
Change the git progress update callback signature
This way we can include additional text. This will be used in later
patches.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/git-access.c')
-rw-r--r-- | subsurface-core/git-access.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subsurface-core/git-access.c b/subsurface-core/git-access.c index 4213d18f0..36413a55c 100644 --- a/subsurface-core/git-access.c +++ b/subsurface-core/git-access.c @@ -22,9 +22,9 @@ bool is_subsurface_cloud = false; -int (*update_progress_cb)(int) = NULL; +int (*update_progress_cb)(int, const char *) = NULL; -void set_git_update_cb(int(*cb)(int)) +void set_git_update_cb(int(*cb)(int, const char *)) { update_progress_cb = cb; } @@ -34,7 +34,7 @@ static int update_progress(int percent) static int last_percent = -10; int ret = 0; if (update_progress_cb) - ret = (*update_progress_cb)(percent); + ret = (*update_progress_cb)(percent, ""); if (verbose && percent - 10 >= last_percent) { last_percent = percent; fprintf(stderr, "git progress %d%%\n", percent); |