| 32 #include <cx/string.h> |
32 #include <cx/string.h> |
| 33 #include <cx/hash_map.h> |
33 #include <cx/hash_map.h> |
| 34 #include <regex.h> |
34 #include <regex.h> |
| 35 #include "../public/nsapi.h" |
35 #include "../public/nsapi.h" |
| 36 #include "../config/serverconfig.h" |
36 #include "../config/serverconfig.h" |
| |
37 #include "config.h" |
| 37 #include "../util/strreplace.h" |
38 #include "../util/strreplace.h" |
| 38 #include "../webdav/webdav.h" |
39 #include "../webdav/webdav.h" |
| 39 |
40 |
| 40 |
41 |
| 41 #ifdef __cplusplus |
42 #ifdef __cplusplus |
| 140 WSLocation *children_end; |
141 WSLocation *children_end; |
| 141 WSLocation *prev; |
142 WSLocation *prev; |
| 142 WSLocation *next; |
143 WSLocation *next; |
| 143 }; |
144 }; |
| 144 |
145 |
| 145 WSLocation* cfg_location_get(const CxAllocator *a, ConfigNode *obj); |
146 WSLocation* cfg_location_get(ServerConfiguration *cfg, ConfigNode *obj); |
| |
147 |
| |
148 int location_apply_config(WSLocationConfig *target, WSLocation *loc); |
| |
149 int location_match(WSLocation *loc, cxstring uri); |
| |
150 WSLocationConfig* location_match_and_get_config(pool_handle_t *pool, cxstring uri, WSLocation *loc); |
| |
151 WSLocationConfig* cfg_location_match(Session *sn, Request *rq); |
| 146 |
152 |
| 147 #ifdef __cplusplus |
153 #ifdef __cplusplus |
| 148 } |
154 } |
| 149 #endif |
155 #endif |
| 150 |
156 |