X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Fpython%2Fyaffsfs.py;h=28d7097a39768f052087260106174c241b7ac9f9;hb=9bdabdaa8467f3f56359598434e0f6f254c100e9;hp=7347687cf9a1ff461e758ac82361e77253f9c22a;hpb=679f371f44c58b815b42f3390a81c269f5bb9710;p=yaffs2.git diff --git a/direct/python/yaffsfs.py b/direct/python/yaffsfs.py index 7347687..28d7097 100644 --- a/direct/python/yaffsfs.py +++ b/direct/python/yaffsfs.py @@ -1,3 +1,16 @@ +## +## 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") @@ -240,10 +253,10 @@ yaffs_n_handles = ylib.yaffs_n_handles yaffs_n_handles.argtypes = [c_char_p] yaffs_n_handles.restype = c_int -#int yaffs_StartUp(void) -yaffs_StartUp = ylib.yaffs_StartUp -yaffs_StartUp.argtypes = [] -yaffs_StartUp.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 #int yaffs_set_trace(unsigned int tm) { return yaffs_traceMask=tm; } yaffs_set_trace=ylib.yaffs_set_trace