dav/main.c

changeset 728
35a421f441d5
parent 726
8f6ad495f538
child 731
e0358fa1a3b1
--- a/dav/main.c	Fri Jun 04 18:24:39 2021 +0200
+++ b/dav/main.c	Fri Jun 04 18:24:55 2021 +0200
@@ -66,13 +66,16 @@
     }
 }
 
+static Repository* url2repo(char *url, char **path);
+static DavSession* connect_to_repo(Repository *repo, char *path, CmdArgs *a);
+
 //define DO_THE_TEST
 //include <libidav/davqlparser.h>
 //include <libidav/davqlexec.h>
 //include "tags.h"
 //include <libidav/resource.h>
 
-void test() {
+void test(CmdArgs *a) {
     
 }
 
@@ -103,6 +106,7 @@
     
     int ret = dav_main(argc, argv_utf8);
     
+
     for(int i=0;i<argc;i++) {
         free(argv_utf8[i]);
     }
@@ -142,7 +146,7 @@
     int ret = EXIT_FAILURE;
     printxmlerror = 0;
 #ifdef DO_THE_TEST
-    test();
+    test(args);
     return 0;
 #endif
     if(!strcmp(cmd, "check") || !strcmp(cmd, "check-config")) {

mercurial