libidav/webdav.c

changeset 645
ad61c1654dce
parent 609
dc3d70848c7c
child 747
efbd59642577
equal deleted inserted replaced
644:a38b15061848 645:ad61c1654dce
61 context->namespaces = ucx_map_new(16); 61 context->namespaces = ucx_map_new(16);
62 if(!context->namespaces) { 62 if(!context->namespaces) {
63 dav_context_destroy(context); 63 dav_context_destroy(context);
64 return NULL; 64 return NULL;
65 } 65 }
66 context->namespaceinfo = ucx_map_new(16);
67 if(!context->namespaceinfo) {
68 dav_context_destroy(context);
69 }
66 context->keys = ucx_map_new(16); 70 context->keys = ucx_map_new(16);
67 if(!context->keys) { 71 if(!context->keys) {
68 dav_context_destroy(context); 72 dav_context_destroy(context);
69 return NULL; 73 return NULL;
70 } 74 }
119 free(ns->name); 123 free(ns->name);
120 } 124 }
121 free(ns); 125 free(ns);
122 } 126 }
123 ucx_map_free(ctx->namespaces); 127 ucx_map_free(ctx->namespaces);
128 }
129 if(ctx->namespaceinfo) {
130 // TODO: implement
124 } 131 }
125 if(ctx->keys) { 132 if(ctx->keys) {
126 UcxMapIterator i = ucx_map_iterator(ctx->keys); 133 UcxMapIterator i = ucx_map_iterator(ctx->keys);
127 UcxKey k; 134 UcxKey k;
128 DavKey *key; 135 DavKey *key;

mercurial