write_entry(): separate two helper functions out
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index 9fbc07e976e1fc904f4e53072ddab74b20277588..7650d2e691e9d7e4a9ef7aca437b59ee2a198652 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -1021,6 +1021,7 @@ extern void *unpack_entry(struct packed_git *, off_t, enum object_type *, unsign
 extern unsigned long unpack_object_header_buffer(const unsigned char *buf, unsigned long len, enum object_type *type, unsigned long *sizep);
 extern unsigned long get_size_from_delta(struct packed_git *, struct pack_window **, off_t);
 extern int packed_object_info_detail(struct packed_git *, off_t, unsigned long *, unsigned long *, unsigned int *, unsigned char *);
+extern int unpack_object_header(struct packed_git *, struct pack_window **, off_t *, unsigned long *);
 
 struct object_info {
        /* Request */
@@ -1030,7 +1031,8 @@ struct object_info {
        enum {
                OI_CACHED,
                OI_LOOSE,
-               OI_PACKED
+               OI_PACKED,
+               OI_DBCACHED
        } whence;
        union {
                /*