src/server/plugins/postgresql/vfs.h

branch
webdav
changeset 283
25e5b771677d
parent 282
cfb588e27198
child 285
96e53bd94958
equal deleted inserted replaced
282:cfb588e27198 283:25e5b771677d
31 31
32 #include "../../public/nsapi.h" 32 #include "../../public/nsapi.h"
33 #include "../../public/vfs.h" 33 #include "../../public/vfs.h"
34 34
35 #include <libpq-fe.h> 35 #include <libpq-fe.h>
36 #include <libpq/libpq-fs.h>
36 37
37 #ifdef __cplusplus 38 #ifdef __cplusplus
38 extern "C" { 39 extern "C" {
39 #endif 40 #endif
40 41
45 46
46 typedef struct PgFile { 47 typedef struct PgFile {
47 int64_t resource_id; 48 int64_t resource_id;
48 int64_t parent_id; 49 int64_t parent_id;
49 WSBool iscollection; 50 WSBool iscollection;
51 Oid oid;
52 int fd;
50 53
51 struct stat s; 54 struct stat s;
52 } PgFile; 55 } PgFile;
53 56
54 typedef struct PgDir { 57 typedef struct PgDir {
71 int pg_resolve_path( 74 int pg_resolve_path(
72 VFSContext *ctx, 75 VFSContext *ctx,
73 const char *path, 76 const char *path,
74 int64_t *parent_id, 77 int64_t *parent_id,
75 int64_t *resource_id, 78 int64_t *resource_id,
79 Oid *oid,
76 const char **resource_name, 80 const char **resource_name,
77 WSBool *iscollection, 81 WSBool *iscollection,
78 struct stat *s); 82 struct stat *s);
79 83
80 void pg_set_stat( 84 void pg_set_stat(

mercurial