mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 01:11:10 +03:00
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
@ -6,18 +6,6 @@
|
||||
|
||||
%apply signed char[] {uint8_t []};
|
||||
|
||||
%{
|
||||
#include "lcd.h"
|
||||
#include "ssd.h"
|
||||
#include "ssd1327.h"
|
||||
#include "ssd1308.h"
|
||||
#include "eboled.h"
|
||||
#include "lcm1602.h"
|
||||
#include "jhd1313m1.h"
|
||||
#include "sainsmartks.h"
|
||||
%}
|
||||
|
||||
|
||||
%typemap(jni) (uint8_t *data, int bytes) "jbyteArray";
|
||||
%typemap(jtype) (uint8_t *data, int bytes) "byte[]";
|
||||
%typemap(jstype) (uint8_t *data, int bytes) "byte[]";
|
||||
@ -33,6 +21,17 @@
|
||||
JCALL3(ReleaseByteArrayElements, jenv, $input, (jbyte *)$1, 0);
|
||||
}
|
||||
|
||||
%{
|
||||
#include "lcd.h"
|
||||
#include "ssd.h"
|
||||
#include "ssd1327.h"
|
||||
#include "ssd1308.h"
|
||||
#include "eboled.h"
|
||||
#include "lcm1602.h"
|
||||
#include "jhd1313m1.h"
|
||||
#include "sainsmartks.h"
|
||||
%}
|
||||
|
||||
%include "lcd.h"
|
||||
%include "ssd.h"
|
||||
%include "ssd1327.h"
|
||||
|
Reference in New Issue
Block a user