Skip to content

Commit 79b26f2

Browse files
authored
Merge pull request libgit2#5008 from libgit2/ethomson/remote_completion
remote: Rename git_remote_completion_type to _t
2 parents 7b083d3 + 2dd5a42 commit 79b26f2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

include/git2/deprecated.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,9 @@ typedef git_indexer_progress_cb git_transfer_progress_cb;
281281
*/
282282
typedef git_push_transfer_progress_cb git_push_transfer_progress;
283283

284+
/** The type of a remote completion event */
285+
#define git_remote_completion_type git_remote_completion_t
286+
284287
/**@}*/
285288

286289
/** @} */

include/git2/remote.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,11 +415,11 @@ GIT_EXTERN(int) git_remote_list(git_strarray *out, git_repository *repo);
415415
* Argument to the completion callback which tells it which operation
416416
* finished.
417417
*/
418-
typedef enum git_remote_completion_type {
418+
typedef enum git_remote_completion_t {
419419
GIT_REMOTE_COMPLETION_DOWNLOAD,
420420
GIT_REMOTE_COMPLETION_INDEXING,
421421
GIT_REMOTE_COMPLETION_ERROR,
422-
} git_remote_completion_type;
422+
} git_remote_completion_t;
423423

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

498498
/**
499499
* This will be called if the remote host requires

0 commit comments

Comments
 (0)