Signed-off-by: Bogdan Ichim <bogdan.ichim@rinftech.com> Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com>
28 lines
567 B
OpenEdge ABL
28 lines
567 B
OpenEdge ABL
%module javaupm_bmpx8x
|
|
%include "../upm.i"
|
|
|
|
%import "../interfaces/javaupm_iTemperatureSensor.i"
|
|
%import "../interfaces/javaupm_iPressureSensor.i"
|
|
|
|
%typemap(javaimports) SWIGTYPE %{
|
|
import upm_interfaces.*;
|
|
%}
|
|
|
|
%{
|
|
#include "bmpx8x.hpp"
|
|
%}
|
|
|
|
%include "bmpx8x_defs.h"
|
|
%include "bmpx8x.hpp"
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_bmpx8x");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%}
|