summaryrefslogtreecommitdiff
path: root/src/fetch.h
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-10-17 14:02:24 -0700
committerBen Straub <bs@github.com>2012-10-19 19:36:22 -0700
commit216863c48fd05b08e9b0083d61dcb163a2add62a (patch)
tree783430092fa565740a2a42c3b761da13a65c8d52 /src/fetch.h
parent0ae81fc479bf3cf7ed31b3e3b070de7990102f1d (diff)
downloadlibgit2-216863c48fd05b08e9b0083d61dcb163a2add62a.tar.gz
Fetch/indexer: progress callbacks
Diffstat (limited to 'src/fetch.h')
-rw-r--r--src/fetch.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/fetch.h b/src/fetch.h
index ae030c6eb..c10973422 100644
--- a/src/fetch.h
+++ b/src/fetch.h
@@ -10,9 +10,21 @@
#include "netops.h"
int git_fetch_negotiate(git_remote *remote);
-int git_fetch_download_pack(git_remote *remote, git_off_t *bytes);
-int git_fetch__download_pack(git_transport *t, git_repository *repo, git_off_t *bytes, git_indexer_stats *stats);
+int git_fetch_download_pack(
+ git_remote *remote,
+ git_off_t *bytes,
+ git_indexer_progress_callback progress_cb,
+ void *progress_payload);
+
+int git_fetch__download_pack(
+ git_transport *t,
+ git_repository *repo,
+ git_off_t *bytes,
+ git_indexer_stats *stats,
+ git_indexer_progress_callback progress_cb,
+ void *progress_payload);
+
int git_fetch_setup_walk(git_revwalk **out, git_repository *repo);
#endif