summaryrefslogtreecommitdiff
path: root/peripheral/libupm/src/am2315/javaupm_am2315.i
blob: 8bdd047cd7cc03585da0d9dbb7ec15b3a7d385d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%module javaupm_am2315
%include "../upm.i"

%{
    #include "am2315.hpp"
%}

%include "am2315.hpp"

%pragma(java) jniclasscode=%{
    static {
        try {
            System.loadLibrary("javaupm_am2315");
        } catch (UnsatisfiedLinkError e) {
            System.err.println("Native code library failed to load. \n" + e);
            System.exit(1);
        }
    }
%}