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

%{
    #include "tsl2561.hpp"
%}

%include "tsl2561.hpp"

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