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

%{
    #include "sm130.h"
%}

%include "sm130.h"

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