src/server/webdav/xattrbackend.h

changeset 481
31affbf33911
parent 480
9f69e4b8b695
child 482
b02da778362e
--- a/src/server/webdav/xattrbackend.h	Sat Mar 18 15:52:35 2023 +0100
+++ b/src/server/webdav/xattrbackend.h	Sat Mar 18 19:33:06 2023 +0100
@@ -32,6 +32,9 @@
 
 #include "../public/webdav.h"
 
+#include <cx/map.h>
+#include <cx/string.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -48,7 +51,12 @@
     const char *base_href;
     const char *base_path;
 } XAttrPropfind;
-    
+
+typedef struct XAttrProppatch {
+    CxMap *properties;
+} XAttrProppatch;
+
+
 int webdav_init_xattr_backend(void);
 
 
@@ -84,6 +92,15 @@
             WSBool commit);
 
 
+/* properties xattr data */
+
+int webdav_xattr_put_prop(CxMap *pmap, WebdavProperty *prop);
+
+CxMap* webdav_xattr_parse_data(CxAllocator *a, const char *data, size_t len, const char *path);
+
+cxmutstr webdav_xattr_serialze_map(CxAllocator *a, CxMap *pmap);
+
+
 #ifdef __cplusplus
 }
 #endif

mercurial