dirplex: Plugged a memory leak.
[ashd.git] / lib / cf.h
... / ...
CommitLineData
1#ifndef _ASHCONF_H
2#define _ASHCONF_H
3
4#include <req.h>
5
6struct cfstate {
7 struct muth *pf;
8 int expstart;
9 char **res, **argv;
10 int argc;
11 int lno;
12 char *file;
13};
14
15struct child {
16 struct child *next;
17 char *name;
18 int type;
19 char **argv;
20 int fd;
21};
22
23void skipcfblock(struct cfstate *s);
24struct cfstate *mkcfparser(FILE *in, char *name);
25void freecfparser(struct cfstate *s);
26char **getcfline(struct cfstate *s);
27char *findstdconf(char *name);
28
29void freechild(struct child *ch);
30struct child *parsechild(struct cfstate *s);
31int childhandle(struct child *ch, struct hthead *req, int fd, void (*chinit)(void *), void *idata);
32
33#endif