dav/scfg.h

changeset 491
fdc2fb090cc7
parent 490
d94c4fd35c21
child 521
c5bbae4b3cca
--- a/dav/scfg.h	Sat Oct 27 15:05:13 2018 +0200
+++ b/dav/scfg.h	Sun Nov 04 16:35:44 2018 +0100
@@ -49,7 +49,8 @@
 #define DEFAULT_TAG_XATTR "tags"
 #define MACOS_TAG_XATTR "com.apple.metadata:_kMDItemUserTags"
     
-typedef struct TagConfig TagConfig;
+typedef struct TagConfig  TagConfig;
+typedef struct Versioning Versioning;
     
 typedef struct SyncDirectory {
     char *name;
@@ -59,6 +60,7 @@
     char *repository;
     char *database;
     TagConfig *tagconfig;
+    Versioning *versioning;
     UcxList *include;
     UcxList *exclude;
     UcxList *tagfilter;
@@ -103,6 +105,18 @@
     bool detect_changes;
 };
 
+enum VersioningType {
+    VERSIONING_SIMPLE = 0,
+    VERSIONING_DELTAV
+};
+typedef enum VersioningType VersioningType;
+
+struct Versioning {
+    VersioningType type;
+    char *collection;
+    bool always;
+};
+
 int load_sync_config();
 
 UcxMapIterator scfg_directory_iterator();

mercurial