yaffs Add error retrieval function for yaffs direct testing
[yaffs2.git] / direct / python / yaffsfs.py
index 986f35892a741769f5aaf648a4e1ee09afcadde1..7347687cf9a1ff461e758ac82361e77253f9c22a 100644 (file)
@@ -255,6 +255,11 @@ yaffs_get_trace=ylib.yaffs_get_trace
 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()