X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fpython%2Fyaffsfs.py;h=1da25fd9702f6f9a8b26f8159d56176aabfefd42;hp=28d7097a39768f052087260106174c241b7ac9f9;hb=c118b37070fa47650ca61c8c740da7461450d139;hpb=a34826e701dd381a293bb90b25a48d2bd58e8de8 diff --git a/direct/python/yaffsfs.py b/direct/python/yaffsfs.py index 28d7097..1da25fd 100644 --- a/direct/python/yaffsfs.py +++ b/direct/python/yaffsfs.py @@ -15,6 +15,12 @@ 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]