projects
/
reposerve
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
server responds to flist
[reposerve]
/
server
/
src
/
repo.h
diff --git
a/server/src/repo.h
b/server/src/repo.h
index
3e8643d
..
fb2c977
100644
(file)
--- a/
server/src/repo.h
+++ b/
server/src/repo.h
@@
-1,10
+1,20
@@
#ifndef REPO_H_
#define REPO_H_
#ifndef REPO_H_
#define REPO_H_
+#include <stdint.h>
+
+struct repo_file {
+ char *path;
+ char *fullpath;
+ size_t size;
+ time_t mtime;
+ uint32_t chksum[4];
+};
+
int repo_init(const char *path);
void repo_cleanup(void);
int repo_num_files(void);
int repo_init(const char *path);
void repo_cleanup(void);
int repo_num_files(void);
-const char *repo_file(int idx);
+struct repo_file *repo_file(int idx);
#endif /* REPO_H_ */
#endif /* REPO_H_ */