mirror of
https://github.com/eclipse/upm.git
synced 2025-07-04 10:51:12 +03:00
SWIG: Added java swig interface files
Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
23
src/hlg150h/javaupm_hlg150h.i
Normal file
23
src/hlg150h/javaupm_hlg150h.i
Normal file
@ -0,0 +1,23 @@
|
||||
%module javaupm_hlg150h
|
||||
%include "../upm.i"
|
||||
%include "arrays_java.i";
|
||||
%include "../java_buffer.i"
|
||||
%include "cpointer.i"
|
||||
%include "typemaps.i"
|
||||
|
||||
%{
|
||||
#include "hlg150h.h"
|
||||
%}
|
||||
|
||||
%include "hlg150h.h"
|
||||
|
||||
%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);
|
||||
}
|
||||
}
|
||||
%}
|
Reference in New Issue
Block a user