76 typedef enum WebdavVFSOpType WebdavVFSOpType; |
76 typedef enum WebdavVFSOpType WebdavVFSOpType; |
77 |
77 |
78 typedef int(*vfs_op_func)(WebdavVFSRequest *, WSBool *); |
78 typedef int(*vfs_op_func)(WebdavVFSRequest *, WSBool *); |
79 typedef int(*vfs_op_finish_func)(WebdavVFSRequest *, WSBool); |
79 typedef int(*vfs_op_finish_func)(WebdavVFSRequest *, WSBool); |
80 |
80 |
|
81 typedef int(*vfs_op_child_func)( |
|
82 VFSContext *, |
|
83 const char *, /* href */ |
|
84 const char *, /* path */ |
|
85 VFSDir *, /* parent dir */ |
|
86 struct stat *, /* child stat */ |
|
87 void *); /* user data */ |
|
88 |
81 /* |
89 /* |
82 * counts the number of backends |
90 * counts the number of backends |
83 */ |
91 */ |
84 size_t webdav_num_backends(WebdavBackend *dav); |
92 size_t webdav_num_backends(WebdavBackend *dav); |
85 |
93 |
130 Session *sn, |
138 Session *sn, |
131 Request *rq, |
139 Request *rq, |
132 WebdavBackend *dav, |
140 WebdavBackend *dav, |
133 WSBool precondition); |
141 WSBool precondition); |
134 |
142 |
|
143 int webdav_op_iterate_children( |
|
144 VFSContext *vfs, |
|
145 int depth, |
|
146 const char *href, |
|
147 const char *path, |
|
148 vfs_op_child_func func, |
|
149 void *userdata); |
|
150 |
135 int webdav_vfs_stat(WebdavVFSOperation *op); |
151 int webdav_vfs_stat(WebdavVFSOperation *op); |
136 |
152 |
137 int webdav_vfs_op_do(WebdavVFSOperation *op, WebdavVFSOpType type); |
153 int webdav_vfs_op_do(WebdavVFSOperation *op, WebdavVFSOpType type); |
138 |
154 |
139 int webdav_vfs_unlink(WebdavVFSOperation *op); |
155 int webdav_vfs_unlink(WebdavVFSOperation *op); |