X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fpython%2Fyaffsfs.py;h=2b52466bec2711eec48ffb487172ec827bbb0ac3;hp=5ef7c76120a38e4ae00e549a8d1c1f03b735e01c;hb=refs%2Fheads%2Faleph1-release-branch;hpb=5e008044bbb82598c2ae8ddd7bab78c955b6d2b0 diff --git a/direct/python/yaffsfs.py b/direct/python/yaffsfs.py index 5ef7c76..2b52466 100644 --- a/direct/python/yaffsfs.py +++ b/direct/python/yaffsfs.py @@ -1,7 +1,25 @@ +## +## 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 +## +## 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") +#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]