46 typedef struct DavSession DavSession; |
46 typedef struct DavSession DavSession; |
47 typedef struct DavResource DavResource; |
47 typedef struct DavResource DavResource; |
48 typedef struct DavRequest DavRequest; |
48 typedef struct DavRequest DavRequest; |
49 typedef struct DavNamespace DavNamespace; |
49 typedef struct DavNamespace DavNamespace; |
50 typedef struct DavProperty DavProperty; |
50 typedef struct DavProperty DavProperty; |
|
51 typedef struct DavPropName DavPropName; |
51 typedef struct DavKey DavKey; |
52 typedef struct DavKey DavKey; |
52 |
53 |
53 #include "davql.h" |
54 #include "davql.h" |
54 |
55 |
55 typedef size_t(*dav_read_func)(void*, size_t, size_t, void*); |
56 typedef size_t(*dav_read_func)(void*, size_t, size_t, void*); |
207 void dav_set_property(DavResource *res, char *name, char *value); |
213 void dav_set_property(DavResource *res, char *name, char *value); |
208 void dav_set_property_ns(DavResource *res, char *ns, char *name, char *value); |
214 void dav_set_property_ns(DavResource *res, char *ns, char *name, char *value); |
209 void dav_remove_property(DavResource *res, char *name); |
215 void dav_remove_property(DavResource *res, char *name); |
210 void dav_remove_property_ns(DavResource *res, char *ns, char *name); |
216 void dav_remove_property_ns(DavResource *res, char *ns, char *name); |
211 |
217 |
|
218 DavPropName* dav_get_property_names(DavResource *res, size_t *count); |
|
219 |
212 void dav_set_content(DavResource *res, void *stream, dav_read_func read_func); |
220 void dav_set_content(DavResource *res, void *stream, dav_read_func read_func); |
213 void dav_set_content_data(DavResource *res, char *content, size_t length); |
221 void dav_set_content_data(DavResource *res, char *content, size_t length); |
214 |
222 |
215 int dav_load(DavResource *res); |
223 int dav_load(DavResource *res); |
216 int dav_store(DavResource *res); |
224 int dav_store(DavResource *res); |