src/server/plugins/postgresql/webdav.h

branch
webdav
changeset 374
77506ec632a4
parent 366
47bc686fafe4
child 376
61d481d3c2e4
--- a/src/server/plugins/postgresql/webdav.h	Sat Aug 13 15:56:51 2022 +0200
+++ b/src/server/plugins/postgresql/webdav.h	Sun Aug 14 11:40:54 2022 +0200
@@ -32,6 +32,8 @@
 #include "../../public/nsapi.h"
 #include "../../public/webdav.h"
 
+#include "config.h"
+
 #include <libpq-fe.h>
 #include <ucx/buffer.h>
 
@@ -44,7 +46,8 @@
 typedef struct PgWebdavBackend {
     ResourceData *pg_resource;
     PGconn *connection;
-    int64_t root_resource_id;
+    PgRepository *repository;
+    char root_resource_id_str[32];
 } PgWebdavBackend;
     
 typedef struct PgPropfind {
@@ -57,7 +60,7 @@
 
 void* pg_webdav_init(ServerConfiguration *cfg, pool_handle_t *pool, WSConfigNode *config);
 WebdavBackend* pg_webdav_create(Session *sn, Request *rq, pblock *pb, void *initData);
-WebdavBackend* pg_webdav_create_from_resdata(Session *sn, Request *rq, ResourceData *resdata);
+WebdavBackend* pg_webdav_create_from_resdata(Session *sn, Request *rq, PgRepository *repo, ResourceData *resdata);
 
 WebdavBackend* pg_webdav_prop_create(Session *sn, Request *rq, pblock *pb);
 

mercurial