summaryrefslogtreecommitdiff
path: root/yaffs2/direct/yaffscfg.h
diff options
context:
space:
mode:
Diffstat (limited to 'yaffs2/direct/yaffscfg.h')
-rw-r--r--yaffs2/direct/yaffscfg.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/yaffs2/direct/yaffscfg.h b/yaffs2/direct/yaffscfg.h
new file mode 100644
index 0000000..4325aa2
--- /dev/null
+++ b/yaffs2/direct/yaffscfg.h
@@ -0,0 +1,30 @@
+/*
+* Header file for using yaffs in an application via
+* a direct interface.
+*/
+
+
+#ifndef __YAFFSCFG_H__
+#define __YAFFSCFG_H__
+
+
+#include "devextras.h"
+
+#define YAFFSFS_N_HANDLES 200
+
+
+typedef struct {
+ const char *prefix;
+ struct yaffs_DeviceStruct *dev;
+} yaffsfs_DeviceConfiguration;
+
+
+void yaffsfs_Lock(void);
+void yaffsfs_Unlock(void);
+
+__u32 yaffsfs_CurrentTime(void);
+
+void yaffsfs_SetError(int err);
+
+#endif
+