mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 09:20:39 +03:00
28 lines
518 B
OpenEdge ABL
28 lines
518 B
OpenEdge ABL
%module javaupm_ili9341
|
|
%include "../upm.i"
|
|
%include "stdint.i"
|
|
%include "typemaps.i"
|
|
|
|
%apply uint8_t *INPUT { uint8_t *addr }
|
|
|
|
%include "ili9341_gfx.h"
|
|
%{
|
|
#include "ili9341_gfx.h"
|
|
%}
|
|
|
|
%{
|
|
#include "ili9341.h"
|
|
%}
|
|
|
|
%include "ili9341.h"
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_ili9341");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%} |