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

%{
    #include "bmpx8x.h"
%}

%include "bmpx8x.h"

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