Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions include/git2/deprecated.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ typedef git_indexer_progress_cb git_transfer_progress_cb;
*/
typedef git_push_transfer_progress_cb git_push_transfer_progress;

/** The type of a remote completion event */
#define git_remote_completion_type git_remote_completion_t

/**@}*/

/** @} */
Expand Down
6 changes: 3 additions & 3 deletions include/git2/remote.h
Original file line number Diff line number Diff line change
Expand Up @@ -415,11 +415,11 @@ GIT_EXTERN(int) git_remote_list(git_strarray *out, git_repository *repo);
* Argument to the completion callback which tells it which operation
* finished.
*/
typedef enum git_remote_completion_type {
typedef enum git_remote_completion_t {
GIT_REMOTE_COMPLETION_DOWNLOAD,
GIT_REMOTE_COMPLETION_INDEXING,
GIT_REMOTE_COMPLETION_ERROR,
} git_remote_completion_type;
} git_remote_completion_t;

/** Push network progress notification function */
typedef int GIT_CALLBACK(git_push_transfer_progress_cb)(
Expand Down Expand Up @@ -493,7 +493,7 @@ struct git_remote_callbacks {
* Completion is called when different parts of the download
* process are done (currently unused).
*/
int GIT_CALLBACK(completion)(git_remote_completion_type type, void *data);
int GIT_CALLBACK(completion)(git_remote_completion_t type, void *data);

/**
* This will be called if the remote host requires
Expand Down