From 38947ebbe81dc7301746935b9fa93f38360e5637 Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Mon, 18 Jun 2012 21:38:14 +0100 Subject: SWIG Java bindings improvements Much-improved Java bindings. Java arrays can now be passed to functions that take void *, without any special treatment. --- swig/xtract.i | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'swig/xtract.i') diff --git a/swig/xtract.i b/swig/xtract.i index bf89996..74335c1 100644 --- a/swig/xtract.i +++ b/swig/xtract.i @@ -1,6 +1,8 @@ %module xtract %include typemaps.i +/* %include carrays.i +*/ %{ #include "xtract/xtract_scalar.h" @@ -16,7 +18,7 @@ %newobject create_filterbank; %delobject destroy_filterbank; - +/* %typemap(javabase) SWIGTYPE, SWIGTYPE *, SWIGTYPE &, SWIGTYPE [], SWIGTYPE (CLASS::*) "SWIG" @@ -26,7 +28,7 @@ return swigCPtr; } %} - +*/ /* Helper functions */ %inline %{ @@ -101,7 +103,8 @@ %array_class(float, floatArray); %array_class(int, intArray); %apply float *OUTPUT { float *result }; -%apply float[] {const float *data}; + +/* %apply float[] {const float *data}; */ %ignore xtract; -- cgit v1.2.3