2015-08-05 19:43:31 +03:00
|
|
|
%module javaupm_mlx90614
|
|
|
|
|
%include "../upm.i"
|
|
|
|
|
|
|
|
|
|
%{
|
|
|
|
|
#include "mlx90614.h"
|
|
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
%include "mlx90614.h"
|
2015-11-23 17:04:32 +02:00
|
|
|
|
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
|
|
|
static {
|
|
|
|
|
try {
|
|
|
|
|
System.loadLibrary("javaupm_mlx90614");
|
|
|
|
|
} catch (UnsatisfiedLinkError e) {
|
|
|
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
|
|
|
System.exit(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
%}
|