mirror of
https://github.com/eclipse/upm.git
synced 2025-03-18 22:47:28 +03:00

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
26 lines
539 B
OpenEdge ABL
26 lines
539 B
OpenEdge ABL
%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"
|
|
%}
|
|
|
|
%include "lol.h"
|