libgit2

git_remote_init_callbacks

Version:

Initializes a git_remote_callbacks with default values. Equivalent to creating an instance with GIT_REMOTE_CALLBACKS_INIT.

Signature

int git_remote_init_callbacks(git_remote_callbacks *opts, unsigned int version);

Parameters

In
opts

the git_remote_callbacks struct to initialize

unsigned int
In
version

Version of struct; pass GIT_REMOTE_CALLBACKS_VERSION

Returns

int

Zero on success; -1 on failure.

Versions