Commit | Line | Data |
---|---|---|
34d725a5 FT |
1 | #ifndef _STATSERVE_H |
2 | #define _STATSERVE_H | |
3 | ||
4 | #include <time.h> | |
5 | #include <ashd/req.h> | |
6 | ||
7 | struct fileinfo { | |
8 | time_t mtime; | |
9 | size_t sz; | |
10 | char ctype[64]; | |
11 | void *data; | |
12 | }; | |
13 | ||
14 | struct source { | |
15 | struct source *next; | |
16 | struct fileinfo (*serve)(struct source *src, char *nm); | |
17 | void (*idle)(struct source *src); | |
18 | void *pdata; | |
19 | }; | |
20 | ||
21 | struct source *mkdbsrc(char *path, char *envpath); | |
22 | struct source *mkfssrc(char *path); | |
23 | ||
24 | #endif |