src/server/public/webdav.h

branch
webdav
changeset 240
cd74667f6c85
parent 237
ee1680ef1ef2
child 241
4adad7faf452
equal deleted inserted replaced
239:d5031c30022c 240:cd74667f6c85
78 typedef int(*wsxml_func)(WSXmlNode *, void *); 78 typedef int(*wsxml_func)(WSXmlNode *, void *);
79 79
80 /* propfind settings */ 80 /* propfind settings */
81 81
82 /* 82 /*
83 * Don't use the vfs to stat files or read the directory children 83 * Use the vfs to stat files or read the directory children
84 */ 84 */
85 #define WS_PROPFIND_NO_VFS 0x01 85 #define WS_WEBDAV_PROPFIND_USE_VFS 0x01
86
87 /*
88 * Use the vfs to open a file for proppatch
89 */
90 #define WS_WEBDAV_PROPPATCH_USE_VFS 0x02
86 91
87 92
88 enum WebdavValueType { 93 enum WebdavValueType {
89 WS_VALUE_NO_TYPE = 0, 94 WS_VALUE_NO_TYPE = 0,
90 WS_VALUE_XML_NODE, 95 WS_VALUE_XML_NODE,
270 * int propfind_finish(WebdavPropfindRequest *rq); 275 * int propfind_finish(WebdavPropfindRequest *rq);
271 * 276 *
272 * Finishes a propfind request. 277 * Finishes a propfind request.
273 */ 278 */
274 int (*propfind_finish)(WebdavPropfindRequest *); 279 int (*propfind_finish)(WebdavPropfindRequest *);
280
281 /*
282 * int proppatch_do(
283 * WebdavProppatchRequest *request,
284 * WebdavResponse *response,
285 * VFSFile *file);
286 *
287 * Modifies properties of the requsted resource:
288 */
289 int (*proppatch_do)(WebdavProppatchRequest *, WebdavResponse *, VFSFile *);
290
291 /*
292 * int proppatch_finish(
293 * WebdavProppatchRequest *request,
294 * WSBool commit);
295 *
296 * Called after all proppatch_do functions of all backends are executed
297 * and should either permanently store the properties (commit == true) or
298 * revert all changed (commit == false).
299 */
300 int (*proppatch_finish)(WebdavProppatchRequest *, WSBool);
275 301
276 /* 302 /*
277 * See the WS_PROPFIND_ macros for informations about the settings 303 * See the WS_PROPFIND_ macros for informations about the settings
278 */ 304 */
279 uint32_t settings; 305 uint32_t settings;

mercurial