src/server/plugins/postgresql/vfs.h

branch
webdav
changeset 366
47bc686fafe4
parent 346
784b24381bed
child 374
77506ec632a4
equal deleted inserted replaced
361:570026d3a685 366:47bc686fafe4
42 #define PG_ETAG_MAXLEN 48 42 #define PG_ETAG_MAXLEN 48
43 43
44 typedef struct PgVFS { 44 typedef struct PgVFS {
45 ResourceData *pg_resource; 45 ResourceData *pg_resource;
46 PGconn *connection; 46 PGconn *connection;
47 int64_t root_resource_id;
47 } PgVFS; 48 } PgVFS;
48 49
49 typedef struct PgFile { 50 typedef struct PgFile {
50 int64_t resource_id; 51 int64_t resource_id;
51 int64_t parent_id; 52 int64_t parent_id;
62 PGresult *result; 63 PGresult *result;
63 int row; 64 int row;
64 int nrows; 65 int nrows;
65 } PgDir; 66 } PgDir;
66 67
67 VFS* pg_vfs_create(Session *sn, Request *rq, pblock *pb); 68 void* pg_vfs_init(ServerConfiguration *cfg, pool_handle_t *pool, WSConfigNode *config);
69
70 VFS* pg_vfs_create(Session *sn, Request *rq, pblock *pb, void *initData);
68 71
69 VFS* pg_vfs_create_from_resourcedata(Session *sn, Request *rq, ResourceData *resdata); 72 VFS* pg_vfs_create_from_resourcedata(Session *sn, Request *rq, ResourceData *resdata);
70 73
71 74
72 /* 75 /*

mercurial