mirror of
https://github.com/eclipse/upm.git
synced 2025-03-26 02:10:02 +03:00

Signed-off-by: Bogdan Ichim <bogdan.ichim@rinftech.com> Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
26 lines
548 B
OpenEdge ABL
26 lines
548 B
OpenEdge ABL
%module javaupm_bma250e
|
|
%include "../upm.i"
|
|
%include "typemaps.i"
|
|
%include "std_vector.i"
|
|
|
|
%ignore getAccelerometer(float *, float *, float *);
|
|
|
|
%template(floatVector) std::vector<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);
|
|
}
|
|
}
|
|
%}
|