hacking the server
[reposerve] / server / src / repo.h
index 3e8643d..fb2c977 100644 (file)
@@ -1,10 +1,20 @@
 #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);
-const char *repo_file(int idx);
+struct repo_file *repo_file(int idx);
 
 #endif /* REPO_H_ */