src/server/webdav/webdav.h

branch
webdav
changeset 212
d7e7ea9c6bc6
parent 211
2160585200ac
child 213
4a6be4f10d5f
equal deleted inserted replaced
211:2160585200ac 212:d7e7ea9c6bc6
47 47
48 int webdav_init(pblock *pb, Session *sn, Request *rq); 48 int webdav_init(pblock *pb, Session *sn, Request *rq);
49 49
50 int webdav_service(pblock *pb, Session *sn, Request *rq); 50 int webdav_service(pblock *pb, Session *sn, Request *rq);
51 51
52 /*
53 * returns a buffer containing the request body
54 *
55 * this function sets an http response code in case of an error
56 * or missing request body
57 */
52 UcxBuffer* rqbody2buffer(Session *sn, Request *rq); 58 UcxBuffer* rqbody2buffer(Session *sn, Request *rq);
53 59
54 int webdav_getdepth(Request *rq);
55 60
56 int webdav_options(pblock *pb, Session *sn, Request *rq); 61 int webdav_options(pblock *pb, Session *sn, Request *rq);
57 62
58 int webdav_propfind(pblock *pb, Session *sn, Request *rq); 63 int webdav_propfind(pblock *pb, Session *sn, Request *rq);
64
65 int webdav_propfind_do(
66 WebdavBackend *webdav,
67 UcxList *requests,
68 WebdavResponse *response,
69 VFS_DIR parent,
70 const char *path,
71 struct stat *s);
72
73 int webdav_propfind_finish(WebdavBackend *webdav, UcxList *requests);
74
59 int propfind_children( 75 int propfind_children(
60 WebdavBackend *webdav, 76 WebdavBackend *webdav,
61 WebdavPropfindRequest *request, 77 UcxList *requests,
62 WebdavResponse *response, 78 WebdavResponse *response,
63 VFSContext *vfs, 79 VFSContext *vfs,
64 char *path); 80 char *path);
65 81
66 int webdav_proppatch(pblock *pb, Session *sn, Request *rq); 82 int webdav_proppatch(pblock *pb, Session *sn, Request *rq);
76 int webdav_acl(pblock *pb, Session *sn, Request *rq); 92 int webdav_acl(pblock *pb, Session *sn, Request *rq);
77 int webdav_search (pblock *pb, Session *sn, Request *rq); 93 int webdav_search (pblock *pb, Session *sn, Request *rq);
78 94
79 int default_propfind_init( 95 int default_propfind_init(
80 WebdavPropfindRequest *rq, 96 WebdavPropfindRequest *rq,
81 const char* path); 97 const char* path,
98 WebdavPList **outplist);
82 int default_propfind_do( 99 int default_propfind_do(
83 WebdavPropfindRequest *request, 100 WebdavPropfindRequest *request,
84 WebdavResponse *response, 101 WebdavResponse *response,
85 VFS_DIR parent, 102 VFS_DIR parent,
86 const char *path, 103 const char *path,

mercurial