upm/src/t6713/javaupm_t6713.i
Stefan Andritoiu fe9254c004 java: Created a general interface that is no longer included in each package and updated examples
Signed-off-by: Bogdan Ichim <bogdan.ichim@rinftech.com>
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com>
2017-04-25 11:57:54 -07:00

31 lines
579 B
OpenEdge ABL

%module javaupm_t6713
%include "../upm.i"
%import "../interfaces/javaupm_iCO2Sensor.i"
%include "arrays_java.i";
%include "../java_buffer.i"
%include "cpointer.i"
%include "typemaps.i"
%typemap(javaimports) SWIGTYPE %{
import upm_interfaces.*;
%}
%{
#include "t6713.hpp"
%}
%include "t6713.hpp"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_t6713");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}