projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c958ef3
)
More python stuff
author
charles
<charles>
Thu, 8 Oct 2009 02:16:17 +0000
(
02:16
+0000)
committer
charles
<charles>
Thu, 8 Oct 2009 02:16:17 +0000
(
02:16
+0000)
direct/python/yaffs.i
patch
|
blob
|
history
direct/python/yaffs_swig_helper.c
patch
|
blob
|
history
diff --git
a/direct/python/yaffs.i
b/direct/python/yaffs.i
index 74c7f85b51142049e01ceea48deb35455e2bf0d1..a7135f85be4d10c4183ea8be1aafddbaff85d784 100644
(file)
--- a/
direct/python/yaffs.i
+++ b/
direct/python/yaffs.i
@@
-1,6
+1,8
@@
%module yaffs
%{
#include "yaffsfs_for_swig.h"
%module yaffs
%{
#include "yaffsfs_for_swig.h"
+void yaffs_print_constants(void);
%}
%include "yaffsfs_for_swig.h"
%}
%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 ad42603bcc1ada5019e7995a8e5f873552e8eebe..9adc18313d3820dc9f84fc8487164022938b55b4 100644
(file)
--- 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;
#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);
+}