diff -r 535004faa1a5 -r 0cb4eda146c4 src/server/plugins/postgresql/vfs.h --- a/src/server/plugins/postgresql/vfs.h Thu Jan 27 21:24:27 2022 +0100 +++ b/src/server/plugins/postgresql/vfs.h Fri Jan 28 15:44:30 2022 +0100 @@ -32,10 +32,18 @@ #include "../../public/nsapi.h" #include "../../public/vfs.h" +#include + #ifdef __cplusplus extern "C" { #endif +typedef struct PgVFS { + ResourceData *pg_resource; + PGconn *connection; +} PgVFS; + +VFS* pg_vfs_create(Session *sn, Request *rq, pblock *pb); SYS_FILE pg_vfs_open(VFSContext *ctx, const char *path, int oflags); int pg_vfs_stat(VFSContext *ctx, const char *path, struct stat *buf);