java: solved SWIGTYPE_p_int and SWIGTYPE_p_float

Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Stefan Andritoiu
2015-08-14 14:37:02 +03:00
committed by Mihai Tudor Panu
parent 8eed56fda0
commit 78a159594b
6 changed files with 19 additions and 10 deletions

View File

@ -1,10 +1,11 @@
%module javaupm_h3lis331dl
%include "../upm.i"
%include "cpointer.i"
%include "typemaps.i"
%apply int *OUTPUT { int *x, int *y, int*z };
%apply float *OUTPUT { float *aX, float *aY, float *aZ };
/* Send "int *" and "float *" to JavaScript as intp and floatp */
%pointer_functions(int, intp);
%pointer_functions(float, floatp);
%{
#include "h3lis331dl.h"