From 2719471cb97c721e929c98c6bad40a381269295e Mon Sep 17 00:00:00 2001 From: Jeffrey Armstrong Date: Thu, 2 Jan 2014 21:27:40 -0500 Subject: Files can now be queued for commit --- db.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'db.h') 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_ */ -- cgit v1.2.3