src/server/webdav/xattrbackend.h

changeset 481
31affbf33911
parent 480
9f69e4b8b695
child 482
b02da778362e
equal deleted inserted replaced
480:9f69e4b8b695 481:31affbf33911
30 #ifndef WS_WEBDAV_XATTRBACKEND_H 30 #ifndef WS_WEBDAV_XATTRBACKEND_H
31 #define WS_WEBDAV_XATTRBACKEND_H 31 #define WS_WEBDAV_XATTRBACKEND_H
32 32
33 #include "../public/webdav.h" 33 #include "../public/webdav.h"
34 34
35 #include <cx/map.h>
36 #include <cx/string.h>
37
35 #ifdef __cplusplus 38 #ifdef __cplusplus
36 extern "C" { 39 extern "C" {
37 #endif 40 #endif
38 41
39 typedef struct WebdavXAttrRepository { 42 typedef struct WebdavXAttrRepository {
46 49
47 typedef struct XAttrPropfind { 50 typedef struct XAttrPropfind {
48 const char *base_href; 51 const char *base_href;
49 const char *base_path; 52 const char *base_path;
50 } XAttrPropfind; 53 } XAttrPropfind;
51 54
55 typedef struct XAttrProppatch {
56 CxMap *properties;
57 } XAttrProppatch;
58
59
52 int webdav_init_xattr_backend(void); 60 int webdav_init_xattr_backend(void);
53 61
54 62
55 void* webdav_xattr_init(ServerConfiguration *cfg, pool_handle_t *pool, WSConfigNode *config); 63 void* webdav_xattr_init(ServerConfiguration *cfg, pool_handle_t *pool, WSConfigNode *config);
56 64
82 WebdavResource *response, 90 WebdavResource *response,
83 VFSFile *file, 91 VFSFile *file,
84 WSBool commit); 92 WSBool commit);
85 93
86 94
95 /* properties xattr data */
96
97 int webdav_xattr_put_prop(CxMap *pmap, WebdavProperty *prop);
98
99 CxMap* webdav_xattr_parse_data(CxAllocator *a, const char *data, size_t len, const char *path);
100
101 cxmutstr webdav_xattr_serialze_map(CxAllocator *a, CxMap *pmap);
102
103
87 #ifdef __cplusplus 104 #ifdef __cplusplus
88 } 105 }
89 #endif 106 #endif
90 107
91 #endif /* WS_WEBDAV_XATTRBACKEND_H */ 108 #endif /* WS_WEBDAV_XATTRBACKEND_H */

mercurial