62 static void init_default_backend(void) { |
62 static void init_default_backend(void) { |
63 memset(&default_backend, 0, sizeof(WebdavBackend)); |
63 memset(&default_backend, 0, sizeof(WebdavBackend)); |
64 default_backend.propfind_init = default_propfind_init; |
64 default_backend.propfind_init = default_propfind_init; |
65 default_backend.propfind_do = default_propfind_do; |
65 default_backend.propfind_do = default_propfind_do; |
66 default_backend.propfind_finish = default_propfind_finish; |
66 default_backend.propfind_finish = default_propfind_finish; |
67 default_backend.proppatch_do = NULL; |
67 default_backend.proppatch_do = default_proppatch_do; |
68 default_backend.proppatch_finish = NULL; |
68 default_backend.proppatch_finish = default_proppatch_finish; |
69 default_backend.settings = WS_WEBDAV_PROPFIND_USE_VFS; |
69 default_backend.settings = WS_WEBDAV_PROPFIND_USE_VFS; |
70 } |
70 } |
71 |
71 |
72 int webdav_init(pblock *pb, Session *sn, Request *rq) { |
72 int webdav_init(pblock *pb, Session *sn, Request *rq) { |
73 init_default_backend(); |
73 init_default_backend(); |
525 |
525 |
526 return 0; |
526 return 0; |
527 } |
527 } |
528 |
528 |
529 int default_propfind_finish(WebdavPropfindRequest *rq) { |
529 int default_propfind_finish(WebdavPropfindRequest *rq) { |
|
530 return 0; |
|
531 } |
|
532 |
|
533 int default_proppatch_do( |
|
534 WebdavProppatchRequest *request, |
|
535 WebdavResource *response, |
|
536 VFSFile *file, |
|
537 WebdavPList **setInOut, |
|
538 WebdavPList **removeInOut) |
|
539 { |
|
540 return 0; |
|
541 } |
|
542 |
|
543 int default_proppatch_finish( |
|
544 WebdavProppatchRequest *request, |
|
545 WebdavResource *response, |
|
546 VFSFile *file, |
|
547 WSBool commit) |
|
548 { |
530 return 0; |
549 return 0; |
531 } |
550 } |
532 |
551 |
533 |
552 |
534 /* ------------------------------ public API ------------------------------ */ |
553 /* ------------------------------ public API ------------------------------ */ |