summaryrefslogtreecommitdiff
path: root/db.h
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2014-01-02 21:27:40 -0500
committerJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2014-01-02 21:27:40 -0500
commit2719471cb97c721e929c98c6bad40a381269295e (patch)
tree81b2e1e790faed8881114d3922c2a2ed8fdcf6f3 /db.h
parenteb626bd8ee3fddae050dbf9babfbea19961a36f2 (diff)
downloadprism-2719471cb97c721e929c98c6bad40a381269295e.tar.gz
prism-2719471cb97c721e929c98c6bad40a381269295e.zip
Files can now be queued for commit
Diffstat (limited to 'db.h')
-rw-r--r--db.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/db.h b/db.h
index 9a8bd25..6578973 100644
--- a/db.h
+++ b/db.h
@@ -1,6 +1,12 @@
#ifndef _DB_HDRS_
#define _DB_HDRS_
+struct db_file {
+ int id;
+ int revision;
+ char hash[33];
+};
+
int initdb();
int get_revision();
@@ -11,4 +17,10 @@ int get_file_count();
int increment_revision();
+int add_file(const char *filename);
+
+int get_db_fileinfo(const char *filename, struct db_file *info);
+
+int disp_queue();
+
#endif /* _DB_HDRS_ */