mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-25 07:43:59 +00:00
Libgit2 is now officially include as #include "<git2.h>" or indidividual files may be included as #include <git2/index.h> Signed-off-by: Vicent Marti <tanoku@gmail.com>
22 lines
514 B
C
22 lines
514 B
C
#ifndef INCLUDE_odb_h__
|
|
#define INCLUDE_odb_h__
|
|
|
|
#include "git2/odb.h"
|
|
#include "git2/oid.h"
|
|
|
|
#include "vector.h"
|
|
|
|
struct git_odb {
|
|
void *_internal;
|
|
git_vector backends;
|
|
};
|
|
|
|
int git_odb__hash_obj(git_oid *id, char *hdr, size_t n, int *len, git_rawobj *obj);
|
|
int git_odb__inflate_buffer(void *in, size_t inlen, void *out, size_t outlen);
|
|
|
|
|
|
int git_odb_backend_loose(git_odb_backend **backend_out, const char *objects_dir);
|
|
int git_odb_backend_pack(git_odb_backend **backend_out, const char *objects_dir);
|
|
|
|
#endif
|