54 * content length |
55 * content length |
55 */ |
56 */ |
56 size_t length; |
57 size_t length; |
57 }; |
58 }; |
58 |
59 |
|
60 DavResource* dav_resource_new_full(DavSession *sn, char *parent_path, char *name, char *href); |
|
61 |
|
62 void resource_set_href(DavResource *res, sstr_t href); |
|
63 |
59 void resource_set_info(DavResource *res, char *href_str); |
64 void resource_set_info(DavResource *res, char *href_str); |
60 DavResourceData* resource_data_new(DavSession *sn); |
65 DavResourceData* resource_data_new(DavSession *sn); |
61 void resource_add_property(DavResource *res, char *ns, char *name, char *val); |
66 void resource_add_property(DavResource *res, char *ns, char *name, char *val); |
62 char* resource_get_property(DavResource *res, char *ns, char *name); |
67 char* resource_get_property(DavResource *res, char *ns, char *name); |
63 void resource_add_child(DavResource *parent, DavResource *child); |
68 void resource_add_child(DavResource *parent, DavResource *child); |
|
69 |
|
70 int resource_add_crypto_info(DavSession *sn, char *href, char *name); |
64 |
71 |
65 #ifdef __cplusplus |
72 #ifdef __cplusplus |
66 } |
73 } |
67 #endif |
74 #endif |
68 |
75 |