*** empty log message ***
[yaffs2.git] / direct / yaffscfg.h
diff --git a/direct/yaffscfg.h b/direct/yaffscfg.h
new file mode 100644 (file)
index 0000000..4325aa2
--- /dev/null
@@ -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
+