src/server/plugins/postgresql/vfs.h

branch
webdav
changeset 292
7c31bcd5b4be
parent 291
0f46b645aea4
child 294
277a5896a2ec
equal deleted inserted replaced
291:0f46b645aea4 292:7c31bcd5b4be
48 int64_t resource_id; 48 int64_t resource_id;
49 int64_t parent_id; 49 int64_t parent_id;
50 WSBool iscollection; 50 WSBool iscollection;
51 Oid oid; 51 Oid oid;
52 int fd; 52 int fd;
53 int oflags;
53 54
54 struct stat s; 55 struct stat s;
55 } PgFile; 56 } PgFile;
56 57
57 typedef struct PgDir { 58 typedef struct PgDir {
98 int64_t *res_parent_id, 99 int64_t *res_parent_id,
99 Oid *oid, 100 Oid *oid,
100 const char **resource_name, 101 const char **resource_name,
101 struct stat *s, 102 struct stat *s,
102 WSBool collection); 103 WSBool collection);
104
105 int pg_update_resource(PgVFS *pg, int64_t resource_id, int64_t contentlength);
103 106
104 SYS_FILE pg_vfs_open(VFSContext *ctx, const char *path, int oflags); 107 SYS_FILE pg_vfs_open(VFSContext *ctx, const char *path, int oflags);
105 int pg_vfs_stat(VFSContext *ctx, const char *path, struct stat *buf); 108 int pg_vfs_stat(VFSContext *ctx, const char *path, struct stat *buf);
106 int pg_vfs_fstat(VFSContext *ctx, SYS_FILE fd, struct stat *buf); 109 int pg_vfs_fstat(VFSContext *ctx, SYS_FILE fd, struct stat *buf);
107 VFS_DIR pg_vfs_opendir(VFSContext *ctx, const char *path); 110 VFS_DIR pg_vfs_opendir(VFSContext *ctx, const char *path);

mercurial