curieimu: modify calls to use update methodology to fix python/java/js API

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2016-03-18 14:56:23 +00:00
committed by Mihai Tudor Panu
parent 22636fb47a
commit 8c7d6483d3
5 changed files with 118 additions and 42 deletions

View File

@@ -1,5 +1,12 @@
%module jsupm_curieimu
%include "../upm.i"
%include "../carrays_int16_t.i"
// Adding this typemap because SWIG is converting int16 into a short by default
// This forces SWIG to convert it correctly
%typemap(out) int16_t* {
jsresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int16Array, 0 | 0 );
}
%{
#include "curieimu.hpp"