libidav/session.h

changeset 354
067ea2315a8a
parent 225
a297c2e28fa1
child 355
5da2cf15eb44
equal deleted inserted replaced
353:e554f3d72d9e 354:067ea2315a8a
27 */ 27 */
28 28
29 #ifndef DAV_SESSION_H 29 #ifndef DAV_SESSION_H
30 #define DAV_SESSION_H 30 #define DAV_SESSION_H
31 31
32 #include <ucx/buffer.h>
32 #include "webdav.h" 33 #include "webdav.h"
33 34
34 #ifdef __cplusplus 35 #ifdef __cplusplus
35 extern "C" { 36 extern "C" {
36 #endif 37 #endif
76 typedef struct DavLockManager { 77 typedef struct DavLockManager {
77 UcxMap *resource_locks; 78 UcxMap *resource_locks;
78 UcxList *collection_locks; 79 UcxList *collection_locks;
79 } DavLockManager; 80 } DavLockManager;
80 81
82 CURLcode dav_session_curl_perform(DavSession *sn, long *status);
83 CURLcode dav_session_curl_perform_buf(DavSession *sn, UcxBuffer *request, UcxBuffer *response, long *status);
84
81 void dav_session_set_error(DavSession *sn, CURLcode c, int status); 85 void dav_session_set_error(DavSession *sn, CURLcode c, int status);
82 void dav_session_set_errstr(DavSession *sn, const char *str); 86 void dav_session_set_errstr(DavSession *sn, const char *str);
83 87
84 char* dav_session_create_plain_href(DavSession *sn, char *path); 88 char* dav_session_create_plain_href(DavSession *sn, char *path);
85 89

mercurial