X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2Fswig.h;h=ae0bfd07934a6f2b774a4106f2cf1b588b58f8ce;hp=b5cb77af8d8c2fa09ff8c421bac8d0534c64f245;hb=d1ba8203832c54b4a98978c6033296183a24b4d0;hpb=71f4df6d025fa09d937dd5e259992cf04b4a04f8 diff --git a/lib/python/swig.h b/lib/python/swig.h index b5cb77a..ae0bfd0 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