summaryrefslogtreecommitdiff
path: root/chunk-format.h
diff options
context:
space:
mode:
Diffstat (limited to 'chunk-format.h')
-rw-r--r--chunk-format.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chunk-format.h b/chunk-format.h
index 39e8967e95..acb8dfbce8 100644
--- a/chunk-format.h
+++ b/chunk-format.h
@@ -46,6 +46,15 @@ int read_table_of_contents(struct chunkfile *cf,
uint64_t toc_offset,
int toc_length);
+/**
+ * Read the given chunkfile, but read the table of contents from the
+ * end of the given mfile. The file is expected to be a hashfile with
+ * the_hash_file->rawsz bytes at the end storing the hash.
+ */
+int read_trailing_table_of_contents(struct chunkfile *cf,
+ const unsigned char *mfile,
+ size_t mfile_size);
+
#define CHUNK_NOT_FOUND (-2)
/*