java: Changed size_t and unsigned int to int in array declarations. Renamed buf to buffer where necesarry. Moved most Java array typemaps to java_buffer.i. Fixed some String buffers.
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com> Conflicts: src/upm.i
This commit is contained in:
committed by
Mihai Tudor Panu
parent
ab730038fd
commit
2cab79b4c2
@@ -2,13 +2,10 @@
|
||||
%include "../upm.i"
|
||||
%include "typemaps.i"
|
||||
%include "arrays_java.i";
|
||||
%include "../java_buffer.i"
|
||||
|
||||
%apply short *OUTPUT { short * ptrX, short * ptrY, short * ptrZ };
|
||||
|
||||
%{
|
||||
#include "mma7455.h"
|
||||
%}
|
||||
|
||||
%typemap(jni) short* "jshortArray"
|
||||
%typemap(jstype) short* "short[]"
|
||||
%typemap(jtype) short* "short[]"
|
||||
@@ -25,19 +22,8 @@
|
||||
|
||||
%ignore readData(short *, short *, short *);
|
||||
|
||||
%typemap(jni) (unsigned char *buf, unsigned char size) "jbyteArray";
|
||||
%typemap(jtype) (unsigned char *buf, unsigned char size) "byte[]";
|
||||
%typemap(jstype) (unsigned char *buf, unsigned char size) "byte[]";
|
||||
|
||||
%typemap(javain) (unsigned char *buf, unsigned char size) "$javainput";
|
||||
|
||||
%typemap(in) (unsigned char *buf, unsigned char size) {
|
||||
$1 = (unsigned char *) JCALL2(GetByteArrayElements, jenv, $input, NULL);
|
||||
$2 = JCALL1(GetArrayLength, jenv, $input);
|
||||
}
|
||||
|
||||
%typemap(freearg) (unsigned char *buf, unsigned char size) {
|
||||
JCALL3(ReleaseByteArrayElements, jenv, $input, (jbyte *)$1, 0);
|
||||
}
|
||||
%{
|
||||
#include "mma7455.h"
|
||||
%}
|
||||
|
||||
%include "mma7455.h"
|
||||
|
||||
Reference in New Issue
Block a user