add logfile sync config

Wed, 19 Jul 2023 20:31:01 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 19 Jul 2023 20:31:01 +0200
changeset 778
bf53db813cc9
parent 777
15006651a5d1
child 779
a0e02b70dad1

add logfile sync config

dav/scfg.c file | annotate | diff | comparison | revisions
dav/scfg.h file | annotate | diff | comparison | revisions
--- a/dav/scfg.c	Sun Jul 16 13:52:02 2023 +0200
+++ b/dav/scfg.c	Wed Jul 19 20:31:01 2023 +0200
@@ -429,6 +429,7 @@
     char *collection = NULL;
     char *repository = NULL;
     char *database = NULL;
+    char *logfile = NULL;
     TagConfig *tagconfig = NULL;
     Versioning *versioning = NULL;
     CxList *include = cxLinkedListCreateSimple(sizeof(regex_t));
@@ -479,6 +480,8 @@
                 }
             } else if(xstreq(node->name, "database")) {
                 database = value;
+            } else if(xstreq(node->name, "logfile")) {
+                logfile = value;
             } else if(xstreq(node->name, "tagconfig")) {
                 tagconfig = parse_tagconfig(node);
             } else if(xstreq(node->name, "splitconfig")) {
@@ -624,6 +627,7 @@
     dir->collection = collection ? strdup(collection) : NULL;
     dir->repository = strdup(repository);
     dir->database = strdup(database);
+    dir->logfile = strdup(logfile);
     dir->tagconfig = tagconfig;
     dir->versioning = versioning;
     dir->max_retry = max_retry;
--- a/dav/scfg.h	Sun Jul 16 13:52:02 2023 +0200
+++ b/dav/scfg.h	Wed Jul 19 20:31:01 2023 +0200
@@ -85,6 +85,7 @@
     char *collection;
     char *repository;
     char *database;
+    char *logfile;
     TagConfig *tagconfig;
     Versioning *versioning;
     Filter filter;

mercurial