mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
24 lines
465 B
OpenEdge ABL
24 lines
465 B
OpenEdge ABL
![]() |
%module javaupm_rhusb
|
||
|
%include "../upm.i"
|
||
|
%include "typemaps.i"
|
||
|
%include "cpointer.i"
|
||
|
%include "arrays_java.i";
|
||
|
%include "../java_buffer.i"
|
||
|
|
||
|
%{
|
||
|
#include "rhusb.h"
|
||
|
%}
|
||
|
|
||
|
%include "rhusb.h"
|
||
|
|
||
|
%pragma(java) jniclasscode=%{
|
||
|
static {
|
||
|
try {
|
||
|
System.loadLibrary("javaupm_rhusb");
|
||
|
} catch (UnsatisfiedLinkError e) {
|
||
|
System.err.println("Native code library failed to load. \n" + e);
|
||
|
System.exit(1);
|
||
|
}
|
||
|
}
|
||
|
%}
|