summaryrefslogtreecommitdiff
path: root/include/git2/remote.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 /include/git2/remote.h
parent0ae81fc479bf3cf7ed31b3e3b070de7990102f1d (diff)
downloadlibgit2-216863c48fd05b08e9b0083d61dcb163a2add62a.tar.gz
Fetch/indexer: progress callbacks
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r--include/git2/remote.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 9327320b4..ca75126f9 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -184,9 +184,15 @@ GIT_EXTERN(int) git_remote_ls(git_remote *remote, git_headlist_cb list_cb, void
*
* @param remote the remote to download from
* @param filename where to store the temporary filename
+ * @param progress_cb function to call with progress information
+ * @param progress_payload payload for the progress callback
* @return 0 or an error code
*/
-GIT_EXTERN(int) git_remote_download(git_remote *remote, git_off_t *bytes);
+GIT_EXTERN(int) git_remote_download(
+ git_remote *remote,
+ git_off_t *bytes,
+ git_indexer_progress_callback progress_cb,
+ void *progress_payload);
/**
* Check whether the remote is connected