diff options
| author | Michal Idziorek <m.i@gmx.at> | 2015-05-23 01:36:12 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2015-05-23 01:36:12 +0200 |
| commit | 4a06bc7bcb9b88e4975fef6bb619ddc9b4f5bc80 (patch) | |
| tree | 540b9db7d27a9d1871b8444a2f9a29d7365e0965 /fs/mount.h | |
| parent | 566134df26612d34f2a377659c55fb0f1ae9dfa4 (diff) | |
working on mount/file
Diffstat (limited to 'fs/mount.h')
| -rw-r--r-- | fs/mount.h | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -1,14 +1,17 @@ #ifndef MOUNT_H #define MOUNT_H -typedef struct -{ - char *path; // where? - int (*getdents)(uint32_t file_desciptor, fs_dirent *entries, uint32_t max_count); - file get +#define MOUNT_MAX_MOUNTS 10 +typedef struct mount_strutc +{ + char path[256]; // where are we mounted + int (*getdents)(mount_struct*, uint32_t file_desciptor, fs_dirent *entries, uint32_t max_count); + file (*open)ByName(mount_struct*,char *path); void *data //opaque }mount; +mount *mounts_get(); +// #endif |
