diff options
| author | Miguel <m.i@gmx.at> | 2018-09-16 23:46:30 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-16 23:46:30 +0200 |
| commit | 06e6e427c76bdb88a7f72dd04411d95a4bda3270 (patch) | |
| tree | 5c2bae3ca5292bf3db58c33ef3d7f4f3947593c3 /xxx | |
| parent | 740ae2e69995df37c44fe61f57642ee642982ca2 (diff) | |
starting to create sysfs
Diffstat (limited to 'xxx')
| -rw-r--r-- | xxx/mount.c | 12 | ||||
| -rw-r--r-- | xxx/mount.h | 23 |
2 files changed, 0 insertions, 35 deletions
diff --git a/xxx/mount.c b/xxx/mount.c deleted file mode 100644 index cb741f9..0000000 --- a/xxx/mount.c +++ /dev/null @@ -1,12 +0,0 @@ -#include "mount.h" - -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)) -{ -} - -mount *mounts_get() -{ - return 0; -} diff --git a/xxx/mount.h b/xxx/mount.h deleted file mode 100644 index a327e2e..0000000 --- a/xxx/mount.h +++ /dev/null @@ -1,23 +0,0 @@ -#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 |
