summaryrefslogtreecommitdiff
path: root/os/include/filesystem.h
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-29 03:15:44 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-29 03:15:44 +0100
commit499e349afa57536ce80497aa99f61c5492e3733e (patch)
treefe3308c344659e800172cfaad9793918f24ae4b1 /os/include/filesystem.h
parent5754656f65205ff1fd9b23c2a85778b3671caf68 (diff)
More filesystem stuff working. devfs is now in place with stdin, stdout, and stderr.
Diffstat (limited to 'os/include/filesystem.h')
-rw-r--r--os/include/filesystem.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/os/include/filesystem.h b/os/include/filesystem.h
new file mode 100644
index 0000000..4b50600
--- /dev/null
+++ b/os/include/filesystem.h
@@ -0,0 +1,14 @@
+#ifndef __FILESYSTEM_H__
+#define __FILESYSTEM_H__
+
+#include <stdint.h>
+#include <hash-djb2.h>
+
+#define MAX_FS 16
+
+typedef int (*fs_open_t)(void * opaque, const char * fname, int flags, int mode);
+
+int register_fs(const char * mountpoint, fs_open_t callback, void * opaque);
+int fs_open(const char * path, int flags, int mode);
+
+#endif