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

%include "teams.hpp"
%{
    #include "teams.hpp"
%}

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