Allows yaffs direct errors to be read in python.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
yaffs_get_trace.argtypes=[]
yaffs_get_trace.restypes=c_uint
+#int yaffs_get_error(void)
+yaffs_get_error=ylib.yaffs_get_error
+yaffs_get_error.argtypes=[]
+yaffs_get_error.restypes=c_int
+
yaffs_O_CREAT=ylib.yaffs_O_CREAT()
yaffs_O_RDONLY=ylib.yaffs_O_RDONLY()
yaffs_O_WRONLY=ylib.yaffs_O_WRONLY()
return yaffsfs_CountHandles(obj);
}
+int yaffs_get_error(void)
+{
+ return yaffsfs_GetLastError();
+}
+
int yaffs_DumpDevStruct(const YCHAR *path)
{
#if 0
int yaffs_StartUp(void);
+/* Function to get the last error */
+int yaffs_get_error(void);
/* Function only for debugging */
void * yaffs_getdev(const YCHAR *path);
int yaffs_DumpDevStruct(const YCHAR *path);
+
#endif