diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-09-16 04:20:05 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-10-02 06:41:42 +0200 |
commit | d31402a3fc4aa1b7d48ba43fd3bb072e7d69a527 (patch) | |
tree | cc8eb1e1801c98c25349951d6cd3667d94d9ea19 /include/git2/remote.h | |
parent | 71e33d2649f990086237a6cd0fdb7f7d6f742b51 (diff) | |
download | libgit2-d31402a3fc4aa1b7d48ba43fd3bb072e7d69a527.tar.gz |
remote: put the _download() callback with the others
The text progress and update_tips callbacks are already part of the
struct, which was meant to unify the callback setup, but the download
one was left out.
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r-- | include/git2/remote.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index fa8b378c6..2bde5e365 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -257,17 +257,9 @@ GIT_EXTERN(int) git_remote_ls(git_remote *remote, git_headlist_cb list_cb, void * The .idx file will be created and both it and the packfile with be * renamed to their final name. * - * @param remote the remote to download from - * @param progress_cb function to call with progress information. Be aware that - * this is called inline with network and indexing operations, so performance - * may be affected. - * @param payload payload for the progress callback * @return 0 or an error code */ -GIT_EXTERN(int) git_remote_download( - git_remote *remote, - git_transfer_progress_callback progress_cb, - void *payload); +GIT_EXTERN(int) git_remote_download(git_remote *remote); /** * Check whether the remote is connected @@ -403,6 +395,7 @@ struct git_remote_callbacks { unsigned int version; void (*progress)(const char *str, int len, void *data); int (*completion)(git_remote_completion_type type, void *data); + int (*transfer_progress)(const git_transfer_progress *stats, void *data); int (*update_tips)(const char *refname, const git_oid *a, const git_oid *b, void *data); void *payload; }; |