]> git.proxmox.com Git - libgit2.git/blame - src/odb.h
Cleanup legal data
[libgit2.git] / src / odb.h
CommitLineData
bb742ede
VM
1/*
2 * Copyright (C) 2009-2011 the libgit2 contributors
3 *
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
6 */
a7c60cfc
SP
7#ifndef INCLUDE_odb_h__
8#define INCLUDE_odb_h__
9
44908fe7
VM
10#include "git2/odb.h"
11#include "git2/oid.h"
72a3fe42 12#include "git2/types.h"
7d7cd885
VM
13
14#include "vector.h"
72a3fe42 15#include "cache.h"
7d7cd885 16
72a3fe42
VM
17/* DO NOT EXPORT */
18typedef struct {
19 void *data; /**< Raw, decompressed object data. */
20 size_t len; /**< Total number of bytes in data. */
21 git_otype type; /**< Type of this object. */
22} git_rawobj;
23
24/* EXPORT */
25struct git_odb_object {
26 git_cached_obj cached;
27 git_rawobj raw;
28};
29
30/* EXPORT */
7d7cd885
VM
31struct git_odb {
32 void *_internal;
33 git_vector backends;
72a3fe42 34 git_cache cache;
7d7cd885
VM
35};
36
c85e08b1 37int git_odb__hash_obj(git_oid *id, git_rawobj *obj);
7d7cd885 38
a7c60cfc 39#endif