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

%include "adafruitss.h"
%{
    #include "adafruitss.h"
%}

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