X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=direct%2Fpython%2Fyaffsfs.py;h=1d0c8ffde8c4845b20f4fa6341509c0cae8db118;hb=41573908f821bcb40750e7c069ea8f5178f630e5;hp=7a51d3654acb941a360e4b73452b86d74a28355d;hpb=83bae7928558997b6e7e81cee00da75f9c9791fa;p=yaffs2.git diff --git a/direct/python/yaffsfs.py b/direct/python/yaffsfs.py index 7a51d36..1d0c8ff 100644 --- a/direct/python/yaffsfs.py +++ b/direct/python/yaffsfs.py @@ -2,6 +2,11 @@ from ctypes import * cdll.LoadLibrary("./libyaffsfs.so") ylib = CDLL("./libyaffsfs.so") +#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] +yaffs_open_sharing.restype = c_int + #int yaffs_open(const YCHAR *path, int oflag, int mode) ; yaffs_open = ylib.yaffs_open yaffs_open.argtypes = [ c_char_p, c_int, c_int] @@ -230,8 +235,30 @@ yaffs_inodecount = ylib.yaffs_inodecount yaffs_inodecount.argtypes = [c_char_p] yaffs_inodecount.restype = c_int -#int yaffs_StartUp(void) -yaffs_StartUp = ylib.yaffs_StartUp -yaffs_StartUp.argtypes = [] -yaffs_StartUp.restype = c_int - +#int yaffs_n_handles(const YCHAR *path) +yaffs_n_handles = ylib.yaffs_n_handles +yaffs_n_handles.argtypes = [c_char_p] +yaffs_n_handles.restype = c_int + +#int yaffs_start_up(void) +yaffs_start_up = ylib.yaffs_start_up +yaffs_start_up.argtypes = [] +yaffs_start_up.restype = c_int + +yaffs_O_CREAT=ylib.yaffs_O_CREAT() +yaffs_O_RDONLY=ylib.yaffs_O_RDONLY() +yaffs_O_WRONLY=ylib.yaffs_O_WRONLY() +yaffs_O_RDWR=ylib.yaffs_O_RDWR() +yaffs_O_TRUNC=ylib.yaffs_O_TRUNC() + + +yaffs_S_IFMT=ylib.yaffs_S_IFMT() +yaffs_S_IFLNK= ylib.yaffs_S_IFLNK() +yaffs_S_IFDIR =ylib.yaffs_S_IFDIR() +yaffs_S_IFREG=ylib.yaffs_S_IFREG() +yaffs_S_IREAD=ylib.yaffs_S_IREAD() +yaffs_S_IWRITE=ylib.yaffs_S_IWRITE() +yaffs_S_IEXEC=ylib.yaffs_S_IEXEC() +yaffs_XATTR_CREATE=ylib.yaffs_XATTR_CREATE() +yaffs_XATTR_REPLACE=ylib.yaffs_XATTR_REPLACE() +yaffs_S_IEXEC=ylib.yaffs_S_IEXEC()