mirror of
https://github.com/eclipse/upm.git
synced 2025-03-28 03:10:06 +03:00
24 lines
512 B
OpenEdge ABL
24 lines
512 B
OpenEdge ABL
%module javaupm_bma250e
|
|
%include "../upm.i"
|
|
%include "typemaps.i"
|
|
%include "../upm_vectortypes.i"
|
|
|
|
%ignore getAccelerometer(float *, float *, float *);
|
|
|
|
%include "bma250e_defs.h"
|
|
%include "bma250e.hpp"
|
|
%{
|
|
#include "bma250e.hpp"
|
|
%}
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_bma250e");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%}
|