2016-03-11 16:36:18 -07:00
|
|
|
%module javaupm_h803x
|
|
|
|
|
%include "../upm.i"
|
|
|
|
|
%include "typemaps.i"
|
|
|
|
|
|
|
|
|
|
%{
|
2016-04-25 14:27:51 -07:00
|
|
|
#include "h803x.hpp"
|
2016-03-11 16:36:18 -07:00
|
|
|
%}
|
|
|
|
|
|
2016-04-25 14:27:51 -07:00
|
|
|
%include "h803x.hpp"
|
2016-03-11 16:36:18 -07:00
|
|
|
|
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
|
|
|
static {
|
|
|
|
|
try {
|
|
|
|
|
System.loadLibrary("javaupm_h803x");
|
|
|
|
|
} catch (UnsatisfiedLinkError e) {
|
|
|
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
|
|
|
System.exit(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
%}
|