summaryrefslogtreecommitdiff
path: root/xxx/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'xxx/file.h')
-rw-r--r--xxx/file.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/xxx/file.h b/xxx/file.h
new file mode 100644
index 0000000..53c96d8
--- /dev/null
+++ b/xxx/file.h
@@ -0,0 +1,26 @@
+#ifndef FILE_H
+#define FILE_H
+
+#include <stdint.h>
+
+#define FILE_MAX_FILES 100;
+
+typedef struct
+{
+ int(* seek)(int offset, int whence);
+
+ int(* read)(char *buf, int len);
+ int(* wrtie)(char *buf, int len);
+
+ int(* close)();
+ int(* stat)(void *buf);
+
+ void *data; //opaque
+
+}file;
+
+
+
+
+
+#endif