java: solved SWIGTYPE_* issues

Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Stefan Andritoiu
2015-08-17 18:25:09 +03:00
committed by Mihai Tudor Panu
parent 59c6b28cdd
commit 3e59323abb
16 changed files with 50 additions and 9 deletions

View File

@ -1,14 +1,15 @@
%module javaupm_zfm20
%include "../upm.i"
%include "cpointer.i"
%include "stdint.i"
%include "typemaps.i"
%include "arrays_java.i";
%apply unsigned char[] { unsigned char *pkt };
%apply signed char[] { char *buffer };
%apply uint16_t *OUTPUT { uint16_t *id, uint16_t *score };
%apply unsigned char *OUTPUT { unsigned char *pkt};
/* Send "int *" to Java as intp */
%pointer_functions(int, intp);
%{
#include "zfm20.h"
speed_t int_B57600 = B57600;