yaffs Added more tests to direct/timothy_tests/quick_tests
[yaffs2.git] / direct / python / yaffsfs.py
index 03583fdea6a1fdacf086c548aad9832f6fd3b166..1da25fd9702f6f9a8b26f8159d56176aabfefd42 100644 (file)
@@ -1,7 +1,26 @@
+##
+## YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
+##
+## Copyright (C) 2002-2010 Aleph One Ltd.
+##   for Toby Churchill Ltd and Brightstar Engineering
+##
+## Created by Charles Manning <charles@aleph1.co.uk>
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License version 2 as
+## published by the Free Software Foundation.
+##
+
 from ctypes import *
 cdll.LoadLibrary("./libyaffsfs.so")
 ylib = CDLL("./libyaffsfs.so")
 
+#const char * yaffs_error_to_str(int err);
+yaffs_error_to_str = ylib.yaffs_error_to_str
+yaffs_error_to_str.argtypes=[c_int]
+yaffs_error_to_str.restype=c_char_p
+
+
 #int yaffs_open_sharing(const YCHAR *path, int oflag, int mode, int sharingmode) ;
 yaffs_open_sharing = ylib.yaffs_open_sharing
 yaffs_open_sharing.argtypes = [ c_char_p, c_int, c_int, c_int]