Files
upm/src/moisture/javaupm_moisture.i
Abhishek Malik 1caf805d2b Moisture: Add C Src and Example
Changed from GroveMoisture.

Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
2016-09-14 14:09:12 -07:00

19 lines
382 B
OpenEdge ABL

%module javaupm_moisture
%include "../upm.i"
%{
#include "moisture.hpp"
%}
%include "moisture.hpp"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_moisture");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}