diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-12-13 01:23:40 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-12-13 01:23:40 +0100 |
| commit | 0202f152ac515aacf38b210df7d77ca82e146663 (patch) | |
| tree | f45361721d90522978cbd68272bdd8ba1e1c9f4e /wrapper.c | |
| parent | 63116ea57e6920b25d7410eda2fc1c786be8a819 (diff) | |
Add the new callbacks for Remote.Push()
This unifies the types with the Push struct, in preparation for its
deletion.
Diffstat (limited to 'wrapper.c')
| -rw-r--r-- | wrapper.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -71,12 +71,17 @@ void _go_git_setup_diff_notify_callbacks(git_diff_options *opts) { void _go_git_setup_callbacks(git_remote_callbacks *callbacks) { typedef int (*completion_cb)(git_remote_completion_type type, void *data); typedef int (*update_tips_cb)(const char *refname, const git_oid *a, const git_oid *b, void *data); + typedef (*push_update_reference_cb)(const char *refname, const char *status, void *data); + callbacks->sideband_progress = (git_transport_message_cb)sidebandProgressCallback; callbacks->completion = (completion_cb)completionCallback; callbacks->credentials = (git_cred_acquire_cb)credentialsCallback; callbacks->transfer_progress = (git_transfer_progress_cb)transferProgressCallback; callbacks->update_tips = (update_tips_cb)updateTipsCallback; callbacks->certificate_check = (git_transport_certificate_check_cb) certificateCheckCallback; + callbacks->pack_progress = (git_packbuilder_progress) packProgressCallback; + callbacks->push_transfer_progress = (git_push_transfer_progress) pushTransferProgressCallback; + callbacks->push_update_reference = (push_update_reference_cb) pushUpdateReferenceCallback; } typedef int (*status_foreach_cb)(const char *ref, const char *msg, void *data); @@ -88,7 +93,7 @@ int _go_git_push_status_foreach(git_push *push, void *data) int _go_git_push_set_callbacks(git_push *push, void *packbuilder_progress_data, void *transfer_progress_data) { - return git_push_set_callbacks(push, packbuilderProgress, packbuilder_progress_data, pushTransferProgress, transfer_progress_data); + return git_push_set_callbacks(push, packbuilderProgress, packbuilder_progress_data, pushStructTransferProgress, transfer_progress_data); } int _go_blob_chunk_cb(char *buffer, size_t maxLen, void *payload) |
