libgit2

git_odb_add_backend

Version:

Add a custom backend to an existing Object DB

The backends are checked in relative ordering, based on the value of the priority parameter.

Read <sys /odb_backend.h> for more information.

Signature

int git_odb_add_backend(git_odb *odb, git_odb_backend *backend, int priority);

Parameters

In
odb

database to add the backend to

In
backend

pointer to a git_odb_backend instance

int
In
priority

Value for ordering the backends queue

Returns

int

0 on success; error code otherwise

Versions