X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=reposerve;a=blobdiff_plain;f=server%2Fsrc%2Frepo.h;h=fb2c977f3c3ab36803e5ef65d7d0985d2de70497;hp=3e8643da0989f97253ca12a69b5062da6218fdda;hb=da7ca5e387cf4bb820ca48d13a5fc4376c2474b4;hpb=61f583d599f2e54da96c5d12d10701d2129a9fa3 diff --git a/server/src/repo.h b/server/src/repo.h index 3e8643d..fb2c977 100644 --- a/server/src/repo.h +++ b/server/src/repo.h @@ -1,10 +1,20 @@ #ifndef REPO_H_ #define REPO_H_ +#include + +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_ */