diff -r 3578977d29a3 -r f48cea237ec3 src/server/webdav/webdav.c --- a/src/server/webdav/webdav.c Tue Jun 25 22:18:59 2013 +0200 +++ b/src/server/webdav/webdav.c Wed Jun 26 15:09:54 2013 +0200 @@ -540,8 +540,8 @@ /* WebDAV Default Backend */ static PersistenceManager dav_file_backend = { - NULL, - NULL, + dav_rq_propfind_begin, + dav_rq_propfind_end, dav_rq_propfind, dav_rq_proppatch, 0 @@ -551,6 +551,14 @@ return &dav_file_backend; } +void dav_rq_propfind_begin(PersistenceManager *mgr, PropfindRequest *rq) { + +} + +void dav_rq_propfind_end(PersistenceManager *mgr, PropfindRequest *rq) { + +} + void dav_rq_propfind(PersistenceManager *b, PropfindRequest *rq ,char *path) { struct stat st; if(stat(path, &st) != 0) { @@ -633,8 +641,8 @@ /* XmlNsMap */ XmlNsMap* xmlnsmap_create(pool_handle_t *pool) { - XmlNsMap *map = malloc(sizeof(XmlNsMap)); - UcxMap *uxm = ucx_map_new(16); + XmlNsMap *map = pool_malloc(pool, sizeof(XmlNsMap)); + UcxMap *uxm = ucx_map_new(16); // TODO: use pool for map if(map == NULL || uxm == NULL) { return NULL; } @@ -677,7 +685,7 @@ xmlns->prefix = pool_calloc(map->pool, 1, 8); xmlns->prelen = snprintf(xmlns->prefix, 7, "x%d", map->num); - ucx_map_cstr_put(map->map, ns, xmlns); /* TODO: check return value */ + ucx_map_cstr_put(map->map, ns, xmlns); // TODO: check return value map->num++; return xmlns; }