libidav/resource.h

changeset 43
03076907b58a
parent 33
0bbbb0341606
child 75
56962faf2b42
equal deleted inserted replaced
42:6518b035a9df 43:03076907b58a
28 28
29 #ifndef RESOURCE_H 29 #ifndef RESOURCE_H
30 #define RESOURCE_H 30 #define RESOURCE_H
31 31
32 #include "webdav.h" 32 #include "webdav.h"
33 #include <ucx/string.h>
33 34
34 #ifdef __cplusplus 35 #ifdef __cplusplus
35 extern "C" { 36 extern "C" {
36 #endif 37 #endif
37 38
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

mercurial