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_mma7660
%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 "mma7660.h"