diff options
Diffstat (limited to 'peripheral/libupm/src/t6713/javaupm_t6713.i')
-rw-r--r-- | peripheral/libupm/src/t6713/javaupm_t6713.i | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/peripheral/libupm/src/t6713/javaupm_t6713.i b/peripheral/libupm/src/t6713/javaupm_t6713.i new file mode 100644 index 0000000..9851bea --- /dev/null +++ b/peripheral/libupm/src/t6713/javaupm_t6713.i @@ -0,0 +1,23 @@ +%module javaupm_t6713 +%include "../upm.i" +%include "arrays_java.i"; +%include "../java_buffer.i" +%include "cpointer.i" +%include "typemaps.i" + +%{ + #include "t6713.hpp" +%} + +%include "t6713.hpp" + +%pragma(java) jniclasscode=%{ + static { + try { + System.loadLibrary("javaupm_t6713"); + } catch (UnsatisfiedLinkError e) { + System.err.println("Native code library failed to load. \n" + e); + System.exit(1); + } + } +%} |