diff -r 570026d3a685 -r 47bc686fafe4 src/server/plugins/postgresql/vfs.c --- a/src/server/plugins/postgresql/vfs.c Sun May 15 08:56:00 2022 +0200 +++ b/src/server/plugins/postgresql/vfs.c Sun Aug 07 13:46:43 2022 +0200 @@ -27,6 +27,7 @@ */ #include "vfs.h" +#include "config.h" #include @@ -140,7 +141,12 @@ // params: $1: resource_id static const char *sql_delete_res = "delete from Resource where parent_id is not null and resource_id = $1;"; -VFS* pg_vfs_create(Session *sn, Request *rq, pblock *pb) { + +void* pg_vfs_init(ServerConfiguration *cfg, pool_handle_t *pool, WSConfigNode *config) { + return pg_init_repo(pool, config); +} + +VFS* pg_vfs_create(Session *sn, Request *rq, pblock *pb, void *initData) { // resourcepool is required char *resource_pool = pblock_findval("resourcepool", pb); if(!resource_pool) {