From 4a06bc7bcb9b88e4975fef6bb619ddc9b4f5bc80 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Sat, 23 May 2015 01:36:12 +0200 Subject: working on mount/file --- fs/mount.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'fs/mount.h') diff --git a/fs/mount.h b/fs/mount.h index d27195f..beece3c 100644 --- a/fs/mount.h +++ b/fs/mount.h @@ -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 -- cgit v1.2.3