aboutsummaryrefslogtreecommitdiff
path: root/lib/python/swig.h
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-09-26 17:02:47 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-09-26 17:02:47 +0000
commitd1ba8203832c54b4a98978c6033296183a24b4d0 (patch)
treebb15219b137658dec7b8665910973b361b31dce8 /lib/python/swig.h
parent71f4df6d025fa09d937dd5e259992cf04b4a04f8 (diff)
downloadenigma2-d1ba8203832c54b4a98978c6033296183a24b4d0.tar.gz
enigma2-d1ba8203832c54b4a98978c6033296183a24b4d0.zip
- add SWIG_VOID, add tyemap_output_ptr
Diffstat (limited to 'lib/python/swig.h')
-rw-r--r--lib/python/swig.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/swig.h b/lib/python/swig.h
index b5cb77af..ae0bfd07 100644
--- a/lib/python/swig.h
+++ b/lib/python/swig.h
@@ -4,7 +4,8 @@
#ifdef SWIG
#define TEMPLATE_TYPEDEF(x, y) \
%template(y) x; \
-typedef x y
+typedef x y; \
+%typemap_output_ptr(x);
#else
#define TEMPLATE_TYPEDEF(x, y) typedef x y
#endif
@@ -12,9 +13,11 @@ typedef x y
#ifdef SWIG
#define SWIG_INPUT INPUT
#define SWIG_OUTPUT OUTPUT
+#define SWIG_VOID(x) void
#else
#define SWIG_INPUT
#define SWIG_OUTPUT
+#define SWIG_VOID(x) x
#endif
#endif