libidav/resource.c

changeset 888
af685cc9d623
parent 872
d24de29ad1fe
equal deleted inserted replaced
877:b60487c3ec36 888:af685cc9d623
35 #include "utils.h" 35 #include "utils.h"
36 #include "session.h" 36 #include "session.h"
37 #include "methods.h" 37 #include "methods.h"
38 #include "crypto.h" 38 #include "crypto.h"
39 #include <cx/buffer.h> 39 #include <cx/buffer.h>
40 #include <cx/utils.h>
41 #include <cx/hash_map.h> 40 #include <cx/hash_map.h>
42 #include <cx/printf.h> 41 #include <cx/printf.h>
43 #include <cx/mempool.h> 42 #include <cx/mempool.h>
44 #include <cx/array_list.h> 43 #include <cx/array_list.h>
45 44
1597 property->ns->prefix = n->ns->prefix ? 1596 property->ns->prefix = n->ns->prefix ?
1598 dav_session_strdup(sn, (const char*)n->ns->prefix) : NULL; 1597 dav_session_strdup(sn, (const char*)n->ns->prefix) : NULL;
1599 property->value = n->children ? dav_convert_xml(sn, n->children) : NULL; 1598 property->value = n->children ? dav_convert_xml(sn, n->children) : NULL;
1600 1599
1601 cxmutstr propkey = dav_property_key(property->ns->name, property->name); 1600 cxmutstr propkey = dav_property_key(property->ns->name, property->name);
1602 cxMapPut(map, cx_hash_key_cxstr(propkey), property); 1601 cxMapPut(map, propkey, property);
1603 cx_strfree(&propkey); 1602 cx_strfree(&propkey);
1604 } 1603 }
1605 n = n->next; 1604 n = n->next;
1606 } 1605 }
1607 1606

mercurial