mirror of
https://github.com/eclipse/upm.git
synced 2025-03-23 17:00:03 +03:00
22 lines
446 B
OpenEdge ABL
22 lines
446 B
OpenEdge ABL
%module javaupm_htu21d
|
|
%include "../upm.i"
|
|
%include "typemaps.i"
|
|
|
|
%ignore getHumidityData(float*, float*, float*);
|
|
|
|
%{
|
|
#include "htu21d.hpp"
|
|
%}
|
|
%include "htu21d.hpp"
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_htu21d");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%}
|