blob: cbecc9e297ff067f0cad5bdc3f376c8288f84340 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
%module javaupm_zfm20
%include "../upm.i"
%include "stdint.i"
%include "typemaps.i"
%include "arrays_java.i";
%include "../java_buffer.i";
%apply uint16_t *OUTPUT { uint16_t *id, uint16_t *score };
%{
#include "zfm20.hpp"
speed_t int_B57600 = B57600;
%}
%include "zfm20.hpp"
speed_t int_B57600 = B57600;
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_zfm20");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}
|