upm/src/ims/javaupm_ims.i
Jon Trulson 68e42a22d6 ims: 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

21 lines
385 B
OpenEdge ABL

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