X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fdirplex%2Fdirplex.h;h=754327df16680aa9b7a14cdae88ab709c17e6335;hb=0bde126e02214a57138e4450367b7cc38510363e;hp=d3011f56c0ae3788b0f82a374fc17d4e271470d9;hpb=acc2d159e6f946ed6abc7c0e843a483d6478bee3;p=ashd.git diff --git a/src/dirplex/dirplex.h b/src/dirplex/dirplex.h index d3011f5..754327d 100644 --- a/src/dirplex/dirplex.h +++ b/src/dirplex/dirplex.h @@ -9,6 +9,7 @@ #define PT_FILE 0 #define PT_DIR 1 +#define PT_NOTFOUND 2 struct config { struct config *next, *prev; @@ -16,8 +17,9 @@ struct config { time_t mtime, lastck; struct child *children; struct pattern *patterns; - char **index; - char *capture; + char **index, **dotallow; + char *capture, *reparse; + int caproot, parsecomb; }; struct rule { @@ -44,7 +46,7 @@ struct config *readconfig(char *file); struct config *getconfig(char *path); struct config **getconfigs(char *file); struct child *findchild(char *file, char *name, struct config **cf); -struct pattern *findmatch(char *file, int trydefault, int dir); +struct pattern *findmatch(char *file, int trydefault, int type); void modheaders(struct hthead *req, struct pattern *pat); extern time_t now;