diff -r 570026d3a685 -r 47bc686fafe4 src/server/daemon/vfs.h --- a/src/server/daemon/vfs.h Sun May 15 08:56:00 2022 +0200 +++ b/src/server/daemon/vfs.h Sun Aug 07 13:46:43 2022 +0200 @@ -32,10 +32,17 @@ #include "../public/vfs.h" #include "acl.h" +#include + #ifdef __cplusplus extern "C" { #endif +typedef struct VfsType { + vfs_init_func init; + vfs_create_func create; +} VfsType; + typedef struct SysVFSDir { DIR *dir; struct dirent *cur; @@ -48,6 +55,9 @@ typedef enum VFSAioOp VFSAioOp; int vfs_init(void); +VfsType* vfs_get_type(scstr_t vfs_class); + +void* vfs_init_backend(ServerConfiguration *cfg, pool_handle_t *pool, VfsType *vfs_class, WSConfigNode *config, int *error); typedef int(*vfs_op_f)(VFSContext *, const char *); typedef int(*sys_op_f)(VFSContext *, const char *, SysACL *);