From: charles Date: Thu, 8 Oct 2009 02:16:17 +0000 (+0000) Subject: More python stuff X-Git-Tag: pre-name-change~193 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=5fdeee70197161d59e3022372d424594c291ce5e More python stuff --- diff --git a/direct/python/yaffs.i b/direct/python/yaffs.i index 74c7f85..a7135f8 100644 --- 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 index ad42603..9adc183 100644 --- 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); +}