src/server/plugins/postgresql/vfs.h

branch
webdav
changeset 276
0cb4eda146c4
parent 275
535004faa1a5
child 278
38bf7b42b58c
--- 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 <libpq-fe.h>
+
 #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);

mercurial