summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-02-21 11:41:19 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-02-22 11:25:14 +0000
commit59001e83057467c0123069df5b1fbc257022528e (patch)
tree52582d82893aeb253c3b24721da948324eeda2ef /include
parent7506d34c0ca009a203aa649876707fed9ce3c901 (diff)
downloadlibgit2-59001e83057467c0123069df5b1fbc257022528e.tar.gz
remote: rename git_push_transfer_progress callback
The `git_push_transfer_progress` is a callback and as such should be suffixed with `_cb` for consistency. Rename `git_push_transfer_progress` to `git_push_transfer_progress_cb`.
Diffstat (limited to 'include')
-rw-r--r--include/git2/remote.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index df25e04b7..1d57dcd78 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -422,11 +422,12 @@ typedef enum git_remote_completion_type {
} git_remote_completion_type;
/** Push network progress notification function */
-typedef int GIT_CALLBACK(git_push_transfer_progress)(
+typedef int GIT_CALLBACK(git_push_transfer_progress_cb)(
unsigned int current,
unsigned int total,
size_t bytes,
void* payload);
+
/**
* Represents an update which will be performed on the remote during push
*/
@@ -537,7 +538,7 @@ struct git_remote_callbacks {
* inline with pack building operations, so performance may be
* affected.
*/
- git_push_transfer_progress push_transfer_progress;
+ git_push_transfer_progress_cb push_transfer_progress;
/**
* See documentation of git_push_update_reference_cb