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

%{
    #include "mq303a.hpp"
%}

%include "mq303a.hpp"

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