Dolda2000 GitWeb
/
statserve.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Added the ability to specify database page size.
[statserve.git]
/
statserve.h
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
extern int dbpagesize;
25
26
#endif