yaffs Add error retrieval function for yaffs direct testing
[yaffs2.git] / direct / yaffsfs.c
index 22948881b5081e1eb8b8da97674b952f6c852a2d..83605c57a44064fde95c9f79bb7050d0dc28f672 100644 (file)
@@ -2326,6 +2326,11 @@ int yaffs_n_handles(const YCHAR *path)
        return yaffsfs_CountHandles(obj);
 }
 
+int yaffs_get_error(void)
+{
+       return yaffsfs_GetLastError();
+}
+
 int yaffs_DumpDevStruct(const YCHAR *path)
 {
 #if 0