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 */ |