java: eliminated SWIGTYPE_p_mraa_result_t

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-14 18:15:33 +03:00 committed by Mihai Tudor Panu
parent 78a159594b
commit 8b9267c253
2 changed files with 7 additions and 4 deletions

View File

@ -4,7 +4,7 @@
%{
#include "grove.h"
%}
/*
%typemap(jni) mraa_result_t "jint"
%typemap(jstype) mraa_result_t "int"
%typemap(jtype) mraa_result_t "int"
@ -18,6 +18,6 @@
%typemap(out) mraa_result_t {
$result = (int)$1;
}
*/
%include "grove.h"

View File

@ -2,8 +2,11 @@
%include "stdint.i"
%include "upm_exception.i"
%typemap(out) mraa_result_t = int;
%apply int { speed_t };
#if (SWIGJAVA)
%apply int { speed_t };
%apply int { mraa_result_t };
#endif
#if (SWIG_JAVASCRIPT_V8)
%{