mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-23 23:16:26 +00:00
remote functions: return an int
Stop returning a void for functions, future-proofing them to allow them to fail.
This commit is contained in:
@@ -378,8 +378,9 @@ GIT_EXTERN(int) git_remote_connected(const git_remote *remote);
|
||||
* the operation has been cancelled and if so stops the operation.
|
||||
*
|
||||
* @param remote the remote
|
||||
* @return 0 on success, or an error code
|
||||
*/
|
||||
GIT_EXTERN(void) git_remote_stop(git_remote *remote);
|
||||
GIT_EXTERN(int) git_remote_stop(git_remote *remote);
|
||||
|
||||
/**
|
||||
* Disconnect from the remote
|
||||
@@ -387,8 +388,9 @@ GIT_EXTERN(void) git_remote_stop(git_remote *remote);
|
||||
* Close the connection to the remote.
|
||||
*
|
||||
* @param remote the remote to disconnect from
|
||||
* @return 0 on success, or an error code
|
||||
*/
|
||||
GIT_EXTERN(void) git_remote_disconnect(git_remote *remote);
|
||||
GIT_EXTERN(int) git_remote_disconnect(git_remote *remote);
|
||||
|
||||
/**
|
||||
* Free the memory associated with a remote
|
||||
|
||||
Reference in New Issue
Block a user