diff options
Diffstat (limited to 'src/backends.h')
-rw-r--r-- | src/backends.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/backends.h b/src/backends.h new file mode 100644 index 000000000..2b88676fe --- /dev/null +++ b/src/backends.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) the libgit2 contributors. All rights reserved. + * + * This file is part of libgit2, distributed under the GNU GPL v2 with + * a Linking Exception. For full terms see the included COPYING file. + */ +#ifndef INCLUDE_backends_h__ +#define INCLUDE_backends_h__ + +#include "git2/common.h" +#include "git2/odb_backend.h" + +typedef struct { + char *name; + git_odb_backend_ctor ctor; + void *payload; +} git_odb_registration; + +/** + * Find an ODB registration by name + */ +git_odb_registration *git_odb_backend__find(const char *name); + +#endif |