35 |
35 |
36 #include "operation.h" |
36 #include "operation.h" |
37 |
37 |
38 #define WEBDAV_PATH_MAX 8192 |
38 #define WEBDAV_PATH_MAX 8192 |
39 |
39 |
40 WebdavOperation* webdav_operation_create( |
40 /**************************************************************************** |
|
41 * |
|
42 * PROPFIND OPERATION |
|
43 * |
|
44 ****************************************************************************/ |
|
45 |
|
46 WebdavOperation* webdav_create_propfind_operation( |
41 Session *sn, |
47 Session *sn, |
42 Request *rq, |
48 Request *rq, |
43 WebdavBackend *dav, |
49 WebdavBackend *dav, |
44 WebdavPList *reqprops, |
50 WebdavPList *reqprops, |
45 UcxList *requests, |
51 UcxList *requests, |
338 dav = dav->next; |
344 dav = dav->next; |
339 requests = requests->next; |
345 requests = requests->next; |
340 } |
346 } |
341 return ret; |
347 return ret; |
342 } |
348 } |
|
349 |
|
350 /**************************************************************************** |
|
351 * |
|
352 * PROPPATCH OPERATION |
|
353 * |
|
354 ****************************************************************************/ |
|
355 |
|
356 WebdavOperation* webdav_create_proppatch_operation( |
|
357 Session *sn, |
|
358 Request *rq, |
|
359 WebdavBackend *dav, |
|
360 WebdavProppatchRequest *proppatch, |
|
361 WebdavResponse *response) |
|
362 { |
|
363 WebdavOperation *op = pool_malloc(sn->pool, sizeof(WebdavOperation)); |
|
364 ZERO(op, sizeof(WebdavOperation)); |
|
365 op->dav = dav; |
|
366 op->sn = sn; |
|
367 op->rq = rq; |
|
368 op->reqprops = NULL; |
|
369 op->response = response; |
|
370 op->response_close = webdav_op_proppatch_close_resource; |
|
371 response->op = op; |
|
372 |
|
373 return op; |
|
374 } |
|
375 |
|
376 int webdav_op_proppatch_close_resource( |
|
377 WebdavOperation *op, |
|
378 WebdavResource *resource) |
|
379 { |
|
380 return 0; |
|
381 } |
|
382 |