summaryrefslogtreecommitdiff
path: root/manifest.h
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2009-11-14 16:14:55 +0100
committerJoel Rosdahl <joel@rosdahl.net>2010-01-05 18:53:01 +0100
commite53af1a618c68b455a68ed5615bfb3bb5487035d (patch)
treead1695a8f86ccbf0b6ccbec491fd18730e59dfa5 /manifest.h
parent26d779b300afb80974d4a6a825630920778bcc08 (diff)
downloadccache-e53af1a618c68b455a68ed5615bfb3bb5487035d.tar.gz
First working version of the direct mode
Diffstat (limited to 'manifest.h')
-rw-r--r--manifest.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/manifest.h b/manifest.h
new file mode 100644
index 00000000..b80014e8
--- /dev/null
+++ b/manifest.h
@@ -0,0 +1,17 @@
+#ifndef MANIFEST_H
+#define MANIFEST_H
+
+#include <inttypes.h>
+#include "hashtable.h"
+
+struct file_hash
+{
+ uint8_t hash[16];
+ uint32_t size;
+};
+
+struct file_hash *manifest_get(const char *manifest_path);
+int manifest_put(const char *manifest_path, struct file_hash *object_hash,
+ struct hashtable *included_files);
+
+#endif