libgit2

git_odb_init_backend

Version:

Initializes a git_odb_backend with default values. Equivalent to creating an instance with GIT_ODB_BACKEND_INIT.

Signature

int git_odb_init_backend(git_odb_backend *backend, unsigned int version);

Parameters

In
backend
unsigned int
In
version

Version the struct; pass GIT_ODB_BACKEND_VERSION

Returns

int

Zero on success; -1 on failure.

Versions