src/server/public/vfs.h

branch
webdav
changeset 247
1df803e06076
parent 241
4adad7faf452
child 276
0cb4eda146c4
equal deleted inserted replaced
246:155bdef7fe7e 247:1df803e06076
53 int (*fstat)(VFSContext *ctx, SYS_FILE fd, struct stat *buf); 53 int (*fstat)(VFSContext *ctx, SYS_FILE fd, struct stat *buf);
54 VFS_DIR (*opendir)(VFSContext *ctx, const char *path); 54 VFS_DIR (*opendir)(VFSContext *ctx, const char *path);
55 VFS_DIR (*fdopendir)(VFSContext *ctx, SYS_FILE fd); 55 VFS_DIR (*fdopendir)(VFSContext *ctx, SYS_FILE fd);
56 int (*mkdir)(VFSContext *ctx, const char *path); 56 int (*mkdir)(VFSContext *ctx, const char *path);
57 int (*unlink)(VFSContext *ctx, const char *path); 57 int (*unlink)(VFSContext *ctx, const char *path);
58 int (*rmdir)(VFSContext *Ctx, const char *path);
58 uint32_t flags; 59 uint32_t flags;
59 void *instance; 60 void *instance;
60 }; 61 };
61 62
62 struct VFSContext { 63 struct VFSContext {
130 int vfs_readdir(VFS_DIR dir, VFS_ENTRY *entry); 131 int vfs_readdir(VFS_DIR dir, VFS_ENTRY *entry);
131 int vfs_readdir_stat(VFS_DIR dir, VFS_ENTRY *entry); 132 int vfs_readdir_stat(VFS_DIR dir, VFS_ENTRY *entry);
132 void vfs_closedir(VFS_DIR dir); 133 void vfs_closedir(VFS_DIR dir);
133 int vfs_mkdir(VFSContext *ctx, const char *path); 134 int vfs_mkdir(VFSContext *ctx, const char *path);
134 int vfs_unlink(VFSContext *ctx, const char *path); 135 int vfs_unlink(VFSContext *ctx, const char *path);
136 int vfs_rmdir(VFSContext *ctx, const char *path);
135 137
136 #ifdef __cplusplus 138 #ifdef __cplusplus
137 } 139 }
138 #endif 140 #endif
139 141

mercurial