mirror of
https://github.com/eclipse/upm.git
synced 2025-03-26 02:10:02 +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>
31 lines
582 B
OpenEdge ABL
31 lines
582 B
OpenEdge ABL
%module(directors="1") javaupm_si1132
|
|
%include "../upm.i"
|
|
|
|
%include "../interfaces/javaupm_iLightSensor.i"
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_si1132");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%}
|
|
|
|
%{
|
|
#include "si1132.hpp"
|
|
%}
|
|
|
|
/*
|
|
%include "../iModuleStatus.hpp"
|
|
%include "../iLightSensor.hpp"
|
|
|
|
%feature("director") IModuleStatus;
|
|
%feature("director") ILightSensor;
|
|
*/
|
|
|
|
%include "si1132.hpp"
|
|
|