Files
upm/src/mhz16/javaupm_mhz16.i
Stefan Andritoiu dddba3e8a4 java: Added auto load library code in upm SWIG interfaces
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-11-24 14:36:17 -08:00

27 lines
567 B
OpenEdge ABL

%module javaupm_mhz16
%include "../upm.i"
%include "cpointer.i"
%include "typemaps.i"
%include "arrays_java.i";
%include "../java_buffer.i"
%apply int *OUTPUT { int *gas, int *temp };
%{
#include "mhz16.h"
speed_t int_B9600 = B9600;
%}
%include "mhz16.h"
speed_t int_B9600 = B9600;
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_mhz16");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}