From: Charles Manning Date: Mon, 15 Aug 2011 03:48:01 +0000 (+1200) Subject: Fix python wrapper pointer types X-Git-Tag: pre-driver-refactoring~41^2~1 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=e68d2bde85a54e27f0463662619411c5fe20cc4b Fix python wrapper pointer types c_int instead of pointers and returning c_int instead of void caused problems on 64 bits. Signed-off-by: Charles Manning --- diff --git a/direct/python/yaffsfs.py b/direct/python/yaffsfs.py index 1da25fd..79b6adb 100644 --- a/direct/python/yaffsfs.py +++ b/direct/python/yaffsfs.py @@ -171,21 +171,21 @@ class yaffs_dirent_struct(Structure): #yaffs_DIR *yaffs_opendir(const YCHAR *dirname) ; yaffs_opendir = ylib.yaffs_opendir yaffs_opendir.argtypes = [c_char_p] -yaffs_opendir.restype = c_int +yaffs_opendir.restype = c_void_p #struct yaffs_dirent *yaffs_readdir(yaffs_DIR *dirp) ; yaffs_readdir= ylib.yaffs_readdir -yaffs_readdir.argtypes=[c_int] +yaffs_readdir.argtypes=[c_void_p] yaffs_readdir.restype=POINTER(yaffs_dirent_struct) #void yaffs_rewinddir(yaffs_DIR *dirp) ; yaffs_rewinddir = ylib.yaffs_rewinddir -yaffs_rewinddir.argtypes = [c_int] -yaffs_rewinddir.restype = c_int ###### Should be void +yaffs_rewinddir.argtypes = [c_void_p] +yaffs_rewinddir.restype = None # void #int yaffs_closedir(yaffs_DIR *dirp) ; yaffs_closedir = ylib.yaffs_closedir -yaffs_closedir.argtypes = [c_int] +yaffs_closedir.argtypes = [c_void_p] yaffs_closedir.restype = c_int