mirror of
https://github.com/eclipse/upm.git
synced 2025-07-04 10:51:12 +03:00
java: solved some SWIGTYPE issues
Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com> Conflicts: src/mma7455/mma7455.cxx src/mma7455/mma7455.h
This commit is contained in:

committed by
Mihai Tudor Panu

parent
ff42bd390f
commit
6cbddff31a
@ -1,5 +1,22 @@
|
||||
%module javaupm_lol
|
||||
%include "../upm.i"
|
||||
%include "stdint.i"
|
||||
%include "arrays_java.i";
|
||||
%include "typemaps.i"
|
||||
|
||||
%typemap(jni) unsigned char* "jbyteArray";
|
||||
%typemap(jtype) unsigned char* "byte[]";
|
||||
%typemap(jstype) unsigned char* "byte[]";
|
||||
|
||||
%typemap(javaout) unsigned char* {
|
||||
return $jnicall;
|
||||
}
|
||||
|
||||
%typemap(out) unsigned char* {
|
||||
$result = JCALL1(NewByteArray, jenv, LOL_X*LOL_Y);
|
||||
JCALL4(SetByteArrayRegion, jenv, $result, 0, LOL_X*LOL_Y-1, reinterpret_cast<jbyte*>($1));
|
||||
delete [] $1;
|
||||
}
|
||||
|
||||
%{
|
||||
#include "lol.h"
|
||||
|
Reference in New Issue
Block a user