upm/src/hm11/javaupm_hm11.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

24 lines
500 B
OpenEdge ABL

%module javaupm_hm11
%include "../upm.i"
%include "carrays.i"
%include "../java_buffer.i"
%{
#include "hm11.h"
speed_t int_B9600 = B9600;
%}
%include "hm11.h"
speed_t int_B9600 = B9600;
%array_class(char, charArray);
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_hm11");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}