mirror of
https://github.com/eclipse/upm.git
synced 2025-03-25 09:49:59 +03:00
20 lines
428 B
OpenEdge ABL
20 lines
428 B
OpenEdge ABL
%module (docstring="Temperature sensor") javaupm_temperature
|
|
|
|
%include "../upm.i"
|
|
|
|
%include "temperature.hpp"
|
|
%{
|
|
#include "temperature.hpp"
|
|
%}
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_temperature");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%}
|