summaryrefslogtreecommitdiff
path: root/fs/mount.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/mount.h')
-rw-r--r--fs/mount.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/mount.h b/fs/mount.h
index ba3d704..97d7183 100644
--- a/fs/mount.h
+++ b/fs/mount.h
@@ -19,7 +19,7 @@
#include <stdint.h>
-#include "interface/fs.h" // provides fs_dirent structure for read_dir()
+#include <sys/dirent.h> // provides fs_dirent structure for read_dir()
#include "fd.h" // file descriptor returned by open
/** the possible values for mount_struct.type */
@@ -36,7 +36,7 @@ typedef struct mount_struct
char path[256]; // where are we mounted (provide leading and trailing slash!)
fd (*mount_file_open)(struct mount_struct*, char *path);
- int (*mount_read_dir) (struct mount_struct*, char *path, fs_dirent *dirs, uint32_t *pos);
+ int (*mount_read_dir) (struct mount_struct*, char *path, struct dirent *dirs, uint32_t *pos);
void *data; // pointer to some opaque private data
@@ -49,7 +49,7 @@ void mount_add(mount mnt);
fd mount_file_open(char *path);
/** TODO: should use fd number instead of PATH on each call*/
-int mount_read_dir (char *path, fs_dirent *dirs, uint32_t *pos);
+int mount_read_dir (char *path, struct dirent *dirs, uint32_t *pos);
/** sysfs interface / exposing status via /sysfs/ file */
void mount_sysfs(ringbuffer *r, void (*f)(ringbuffer *r,char *fmt, ...));