Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
24 lines
479 B
OpenEdge ABL
24 lines
479 B
OpenEdge ABL
%module(directors="1") javaupm_rpr220
|
|
%include "../upm.i"
|
|
|
|
|
|
%feature("director") IsrCallback;
|
|
|
|
%ignore generic_callback_isr;
|
|
%include "../IsrCallback.h"
|
|
|
|
%{
|
|
#include "rpr220.h"
|
|
%}
|
|
%include "rpr220.h"
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_rpr220");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%} |