106 struct VFS_DIRIO { |
106 struct VFS_DIRIO { |
107 int (*readdir)(VFS_DIR dir, VFS_ENTRY *entry, int getstat); |
107 int (*readdir)(VFS_DIR dir, VFS_ENTRY *entry, int getstat); |
108 void (*close)(VFS_DIR dir); |
108 void (*close)(VFS_DIR dir); |
109 }; |
109 }; |
110 |
110 |
|
111 typedef VFS*(*vfs_create_func)(Session *sn, Request *rq, pblock *pb); |
|
112 |
111 /* |
113 /* |
112 * registers a new VFS |
114 * registers a new VFS |
113 */ |
115 */ |
114 void vfs_add(char *name, VFS *vfs); |
116 int vfs_register_type(const char *name, vfs_create_func vfsCreate); |
115 |
117 |
116 /* |
118 /* |
117 * creates a VFSContext for a Request |
119 * creates a VFSContext for a Request |
118 * vfs calls will do ACL checks |
120 * vfs calls will do ACL checks |
119 */ |
121 */ |