]> git.proxmox.com Git - libgit2.git/blob - src/odb.h
I broke your bindings
[libgit2.git] / src / odb.h
1 #ifndef INCLUDE_odb_h__
2 #define INCLUDE_odb_h__
3
4 #include "git2/odb.h"
5 #include "git2/oid.h"
6 #include "git2/types.h"
7
8 #include "vector.h"
9 #include "cache.h"
10
11 /* DO NOT EXPORT */
12 typedef struct {
13 void *data; /**< Raw, decompressed object data. */
14 size_t len; /**< Total number of bytes in data. */
15 git_otype type; /**< Type of this object. */
16 } git_rawobj;
17
18 /* EXPORT */
19 struct git_odb_object {
20 git_cached_obj cached;
21 git_rawobj raw;
22 };
23
24 /* EXPORT */
25 struct git_odb {
26 void *_internal;
27 git_vector backends;
28 git_cache cache;
29 };
30
31 int git_odb__hash_obj(git_oid *id, char *hdr, size_t n, int *len, git_rawobj *obj);
32
33 #endif