]>
git.proxmox.com Git - libgit2.git/blob - src/odb.h
2 * Copyright (C) 2009-2011 the libgit2 contributors
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.
7 #ifndef INCLUDE_odb_h__
8 #define INCLUDE_odb_h__
12 #include "git2/types.h"
17 #define GIT_OBJECTS_DIR "objects/"
18 #define GIT_OBJECT_DIR_MODE 0777
19 #define GIT_OBJECT_FILE_MODE 0444
23 void *data
; /**< Raw, decompressed object data. */
24 size_t len
; /**< Total number of bytes in data. */
25 git_otype type
; /**< Type of this object. */
29 struct git_odb_object
{
30 git_cached_obj cached
;
41 int git_odb__hash_obj(git_oid
*id
, git_rawobj
*obj
);