summaryrefslogtreecommitdiff
path: root/db.h
blob: 21875c2eb16fc4b26313d8ca02f34514d2bbc7c1 (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
#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);

#endif /* _DB_HDRS_ */