mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 09:20:39 +03:00

Moved the SWIG version check from each sensor library .i file to the base SWIG .i file (per interface). This cleans up the number of #if SWIG_VERSION's across the code base, and will make cleanup of these easier at a later date. Signed-off-by: Noel Eck <noel.eck@intel.com>
27 lines
531 B
OpenEdge ABL
27 lines
531 B
OpenEdge ABL
%module javaupm_hlg150h
|
|
%include "../upm.i"
|
|
|
|
%include "../interfaces/javaupm_iLightController.i"
|
|
|
|
%include "arrays_java.i";
|
|
%include "../java_buffer.i"
|
|
%include "cpointer.i"
|
|
%include "typemaps.i"
|
|
|
|
%{
|
|
#include "hlg150h.hpp"
|
|
%}
|
|
|
|
%include "hlg150h.hpp"
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_hlg150h");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%}
|