add hashing config

Sat, 06 Apr 2019 14:25:07 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 06 Apr 2019 14:25:07 +0200
changeset 549
af91d3c96994
parent 548
ab46acda1066
child 550
8c700eae3eb8

add hashing config

dav/scfg.c file | annotate | diff | comparison | revisions
dav/scfg.h file | annotate | diff | comparison | revisions
--- a/dav/scfg.c	Thu Mar 28 20:30:52 2019 +0100
+++ b/dav/scfg.c	Sat Apr 06 14:25:07 2019 +0200
@@ -392,6 +392,8 @@
     bool backuppull = false;
     bool lockpull = false;
     bool lockpush = false;
+    bool hashing = false;
+    bool detect_copy = false;
     time_t lock_timeout = 0;
     uint32_t metadata = 0;
     
@@ -485,6 +487,8 @@
                     print_warning(node->line, "integer value "
                             "expected in <lock-timeout> element\n");
                 }
+            } else if(xstreq(node->name, "hashing")) {
+                hashing = util_getboolean(value);
             } else {
                 print_error(node->line,
                         "unknown directory config element: %s\n", node->name);
@@ -527,6 +531,7 @@
     dir->backuppull = backuppull;
     dir->lockpull = lockpull;
     dir->lockpush = lockpush;
+    dir->hashing = hashing;
     dir->lock_timeout = lock_timeout;
     dir->metadata = metadata;
     dir->splitconfig = splitconfig;
--- a/dav/scfg.h	Thu Mar 28 20:30:52 2019 +0100
+++ b/dav/scfg.h	Sat Apr 06 14:25:07 2019 +0200
@@ -73,6 +73,7 @@
     bool backuppull;
     bool lockpull;
     bool lockpush;
+    bool hashing;
     uint32_t db_settings;
 } SyncDirectory;
 

mercurial