periphmraa: Added explicit casts for (implicit) casts that were causing errors in periphmraa build, in the wrapper code
%typemap(javain) (uint8_t *txBuf, int length) "$javainput"
%typemap(in,numinputs=1) (uint8_t *txBuf, int length) {
- $1 = JCALL2(GetByteArrayElements, jenv, $input, NULL);
+ $1 = (uint8_t *) JCALL2(GetByteArrayElements, jenv, $input, NULL);
$2 = JCALL1(GetArrayLength, jenv, $input);
}
}
%typemap(argout) (uint8_t *data, int length) {
- JCALL3(ReleaseByteArrayElements, jenv, $input, $1, JNI_COMMIT);
+ JCALL3(ReleaseByteArrayElements, jenv, $input, (jbyte *) $1, JNI_COMMIT);
}
%typemap(jtype) (const uint8_t *data, int length) "byte[]"
%typemap(jni) (const uint8_t *data, int length) "jbyteArray"
%typemap(javain) (const uint8_t *data, int length) "$javainput"
%typemap(in) (const uint8_t *data, int length) {
- $1 = JCALL2(GetByteArrayElements, jenv, $input, NULL);
+ $1 = (uint8_t *) JCALL2(GetByteArrayElements, jenv, $input, NULL);
+ $2 = JCALL1(GetArrayLength, jenv, $input);
+}
+
+%typemap(jtype) (uint8_t *data, int length) "byte[]"
+%typemap(jstype) (uint8_t *data, int length) "byte[]"
+%typemap(jni) (uint8_t *data, int length) "jbyteArray"
+%typemap(javain) (uint8_t *data, int length) "$javainput"
+%typemap(in) (uint8_t *data, int length) {
+ $1 = (uint8_t *) JCALL2(GetByteArrayElements, jenv, $input, NULL);
$2 = JCALL1(GetArrayLength, jenv, $input);
}
