2016-01-06 15:15:40 -08:00
|
|
|
%module(directors="1") javaupm_light_sensor
|
|
|
|
|
|
|
|
|
|
%{
|
2016-04-25 14:27:51 -07:00
|
|
|
#include "iLightSensor.hpp"
|
2016-01-06 15:15:40 -08:00
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
/*
|
2017-01-30 18:14:48 -08:00
|
|
|
%include "../iModuleStatus.hpp"
|
2016-01-06 15:15:40 -08:00
|
|
|
*/
|
2016-09-29 18:24:19 -07:00
|
|
|
%include "iLightSensor.hpp"
|
2016-01-06 15:15:40 -08:00
|
|
|
|
|
|
|
|
%feature("director") IModuleStatus;
|
|
|
|
|
%feature("director") ILightSensor;
|
|
|
|
|
|
2016-04-25 14:27:51 -07:00
|
|
|
%include "iLightSensor.hpp"
|
2016-09-29 18:24:19 -07:00
|
|
|
|
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
|
|
|
static {
|
|
|
|
|
try {
|
|
|
|
|
System.loadLibrary("javaupm_light_sensor");
|
|
|
|
|
} catch (UnsatisfiedLinkError e) {
|
|
|
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
|
|
|
System.exit(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
%}
|