mirror of
https://github.com/eclipse/upm.git
synced 2025-03-23 08:57:30 +03:00

Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
27 lines
575 B
OpenEdge ABL
27 lines
575 B
OpenEdge ABL
%module javaupm_pn532
|
|
%include "../upm.i"
|
|
%include "typemaps.i"
|
|
%include "arrays_java.i"
|
|
|
|
%apply signed char[] {uint8_t *};
|
|
%apply unsigned char *INOUT {uint8_t *responseLength};
|
|
%apply unsigned char *OUTPUT {uint8_t *uidLength};
|
|
|
|
%ignore i2cContext;
|
|
|
|
%{
|
|
#include "pn532.h"
|
|
%}
|
|
|
|
%include "pn532.h"
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_pn532");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%} |