mirror of
https://github.com/eclipse/upm.git
synced 2025-03-26 02:10:02 +03:00
29 lines
528 B
OpenEdge ABL
29 lines
528 B
OpenEdge ABL
![]() |
%module javaupm_bmp280
|
||
|
%include "../upm.i"
|
||
|
%include "cpointer.i"
|
||
|
%include "typemaps.i"
|
||
|
%include "arrays_java.i";
|
||
|
%include "../java_buffer.i"
|
||
|
|
||
|
%include "bmp280.hpp"
|
||
|
%{
|
||
|
#include "bmp280.hpp"
|
||
|
%}
|
||
|
|
||
|
%include "bme280.hpp"
|
||
|
%{
|
||
|
#include "bme280.hpp"
|
||
|
%}
|
||
|
|
||
|
|
||
|
%pragma(java) jniclasscode=%{
|
||
|
static {
|
||
|
try {
|
||
|
System.loadLibrary("javaupm_bmp280");
|
||
|
} catch (UnsatisfiedLinkError e) {
|
||
|
System.err.println("Native code library failed to load. \n" + e);
|
||
|
System.exit(1);
|
||
|
}
|
||
|
}
|
||
|
%}
|