80 void resource_set_href(DavResource *res, sstr_t href); |
80 void resource_set_href(DavResource *res, sstr_t href); |
81 |
81 |
82 void resource_set_info(DavResource *res, char *href_str); |
82 void resource_set_info(DavResource *res, char *href_str); |
83 DavResourceData* resource_data_new(DavSession *sn); |
83 DavResourceData* resource_data_new(DavSession *sn); |
84 void resource_add_property(DavResource *res, const char *ns, const char *name, xmlNode *val); |
84 void resource_add_property(DavResource *res, const char *ns, const char *name, xmlNode *val); |
|
85 void resource_set_crypto_properties(DavResource *res, UcxMap *cprops); |
85 DavXmlNode* resource_get_property(DavResource *res, const char *ns, const char *name); |
86 DavXmlNode* resource_get_property(DavResource *res, const char *ns, const char *name); |
|
87 DavXmlNode* resource_get_encrypted_property(DavResource *res, const char *ns, const char *name); |
86 DavXmlNode* resource_get_property_k(DavResource *res, UcxKey key); |
88 DavXmlNode* resource_get_property_k(DavResource *res, UcxKey key); |
|
89 DavXmlNode* resource_get_encrypted_property_k(DavResource *res, UcxKey key); |
87 void resource_add_child(DavResource *parent, DavResource *child); |
90 void resource_add_child(DavResource *parent, DavResource *child); |
88 void resource_add_ordered_child(DavResource *parent, DavResource *child, UcxList *ordercr); |
91 void resource_add_ordered_child(DavResource *parent, DavResource *child, UcxList *ordercr); |
89 int resource_add_crypto_info(DavSession *sn, const char *href, const char *name, const char *hash); |
92 int resource_add_crypto_info(DavSession *sn, const char *href, const char *name, const char *hash); |
90 |
93 |
91 sstr_t dav_property_key_a(UcxAllocator *a, const char *ns, const char *name); |
94 sstr_t dav_property_key_a(UcxAllocator *a, const char *ns, const char *name); |
92 |
95 |
93 DavXmlNode* create_crypto_prop(DavSession *sn, UcxMap *properties); |
96 DavXmlNode* create_crypto_prop(DavSession *sn, UcxMap *properties); |
94 UcxMap* parse_crypto_prop(DavSession *sn, DavXmlNode *node); |
97 UcxMap* parse_crypto_prop(DavSession *sn, DavKey *key, DavXmlNode *node); |
|
98 UcxMap* parse_crypto_prop_str(DavSession *sn, DavKey *key, const char *content); |
95 |
99 |
96 #ifdef __cplusplus |
100 #ifdef __cplusplus |
97 } |
101 } |
98 #endif |
102 #endif |
99 |
103 |