upm/src/a110x/javaupm_a110x.i

25 lines
548 B
OpenEdge ABL
Raw Normal View History

%module(directors="1") javaupm_a110x
%include "../upm.i"
%include "stdint.i"
%include "typemaps.i"
%feature("director") IsrCallback;
SWIG_DIRECTOR_OWNED(IsrCallback)
%ignore generic_callback_isr;
%include "../IsrCallback.h"
%{
#include "a110x.h"
%}
%include "a110x.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_a110x");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}