# HG changeset patch # User charles # Date 1254968177 -3600 # Node ID 43c9f5f8b5c6c425d4b19117a6ec262870f1cd97 # Parent b644e5e824f4489cc9c7e4db27e90b032e2e73fc More python stuff diff --git a/direct/python/yaffs.i b/direct/python/yaffs.i --- a/direct/python/yaffs.i +++ b/direct/python/yaffs.i @@ -1,6 +1,8 @@ %module yaffs %{ #include "yaffsfs_for_swig.h" +void yaffs_print_constants(void); %} %include "yaffsfs_for_swig.h" +void yaffs_print_constants(void); diff --git a/direct/python/yaffs_swig_helper.c b/direct/python/yaffs_swig_helper.c --- a/direct/python/yaffs_swig_helper.c +++ b/direct/python/yaffs_swig_helper.c @@ -1,4 +1,21 @@ +/* + * These are some dangly bits that need to be built to wrap up the rest of the yaffs test harness + * in SWIG. + * + * This is also the place where extra debugging stuff might end up. + * + */ + #include "yaffsfs.h" int simulate_power_failure; int random_seed; + +int yaffs_print_constants(void) +{ + printf( "O_CREAT........%d\n",O_CREAT); + printf( "O_RDONLY.......%d\n",O_RDONLY); + printf( "O_WRONLY.......%d\n",O_WRONLY); + printf( "O_RDWR.........%d\n",O_RDWR); + printf( "O_TRUNC........%d\n",O_TRUNC); +}