mirror of
https://github.com/eclipse/upm.git
synced 2025-03-22 00:17:30 +03:00
23 lines
460 B
OpenEdge ABL
23 lines
460 B
OpenEdge ABL
%module javaupm_sht1x
|
|
%include "../upm.i"
|
|
%include "std_string.i"
|
|
%include "stdint.i"
|
|
%include "typemaps.i"
|
|
|
|
%include "sht1x_defs.h"
|
|
%include "sht1x.hpp"
|
|
%{
|
|
#include "sht1x.hpp"
|
|
%}
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_sht1x");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%}
|