upm/src/bh1750/javaupm_bh1750.i
Jon Trulson 3f334ed1f3 bh1750: move defines/register defs into separate header for SWIG
Signed-off-by: Jon Trulson <jtrulson@ics.com>
2017-03-17 11:41:33 -06:00

23 lines
425 B
OpenEdge ABL

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