dirplex: Added a capture option to ignore captures of the root directory.
[ashd.git] / src / dirplex / dirplex.h
index 028a3d9..14b5454 100644 (file)
@@ -18,6 +18,7 @@ struct config {
     struct pattern *patterns;
     char **index;
     char *capture;
+    int caproot;
 };
 
 struct rule {
@@ -25,9 +26,15 @@ struct rule {
     char **patterns;
 };
 
+struct headmod {
+    struct headmod *next;
+    char *name, *value;
+};
+
 struct pattern {
     struct pattern *next;
     int type;
+    struct headmod *headers;
     char *childnm;
     char **fchild;
     struct rule **rules;
@@ -39,8 +46,10 @@ 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);
+void modheaders(struct hthead *req, struct pattern *pat);
 
 extern time_t now;
+extern struct child *notfound;
 extern struct config *gconfig, *lconfig;
 
 #endif