diff -r 570026d3a685 -r 47bc686fafe4 src/server/public/vfs.h --- a/src/server/public/vfs.h Sun May 15 08:56:00 2022 +0200 +++ b/src/server/public/vfs.h Sun Aug 07 13:46:43 2022 +0200 @@ -110,17 +110,18 @@ void (*close)(VFS_DIR dir); }; -typedef VFS*(*vfs_create_func)(Session *sn, Request *rq, pblock *pb); +typedef void*(*vfs_init_func)(ServerConfiguration *cfg, pool_handle_t *pool, WSConfigNode *config); +typedef VFS*(*vfs_create_func)(Session *sn, Request *rq, pblock *pb, void *initData); /* * registers a new VFS */ -int vfs_register_type(const char *name, vfs_create_func vfsCreate); +int vfs_register_type(const char *name, vfs_init_func vfsInit, vfs_create_func vfsCreate); /* * Create a new VFS instance */ -VFS* vfs_create(Session *sn, Request *rq, const char *vfs_class, pblock *pb); +VFS* vfs_create(Session *sn, Request *rq, const char *vfs_class, pblock *pb, void *initData); /* * creates a VFSContext for a Request