diff options
Diffstat (limited to 'xxx/mount.h')
| -rw-r--r-- | xxx/mount.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/xxx/mount.h b/xxx/mount.h new file mode 100644 index 0000000..a327e2e --- /dev/null +++ b/xxx/mount.h @@ -0,0 +1,23 @@ +#ifndef MOUNT_H +#define MOUNT_H + +#define MOUNT_MAX_MOUNTS 10 + +#include <stdint.h> +#include "file.h" +#include "interface/fs.h" + +typedef struct mount_struct +{ + char path[256]; // where are we mounted + int (*getdents) (struct mount_struct*, uint32_t file_desciptor, fs_dirent *entries, uint32_t max_count); + file (*open) (struct mount_struct*,char *path); + void *data; //opaque + +}mount; + +mount *mounts_get(); +void mount_add(char *path, void *data,file (*open)(struct mount_struct*,char *path),int (*getdents)(struct mount_struct*, uint32_t file_desciptor, fs_dirent *entries, uint32_t max_count)); + +// +#endif |
