summaryrefslogtreecommitdiff
path: root/db.h
blob: 44074ff9db463402ec35d6267642109dc6c1636c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef _DB_HDRS_
#define _DB_HDRS_

struct db_file {
    int id;
    int revision;
    char hash[33];
};

int initdb();

int get_revision();

int get_revision();

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();

int commit_queue(int revision);

int revert(const char *filename, int revision);

int diff_db_file(const char *filename, int revision);

int clear_entire_queue();

#endif /* _DB_HDRS_ */