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