java: fixed grove API and added some examples

Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Andrei Vasiliu
2015-08-12 16:44:30 +03:00
committed by Mihai Tudor Panu
parent a81b1836a3
commit d3e0ae5771
6 changed files with 130 additions and 0 deletions

View File

@ -5,4 +5,19 @@
#include "grove.h"
%}
%typemap(jni) mraa_result_t "jint"
%typemap(jstype) mraa_result_t "int"
%typemap(jtype) mraa_result_t "int"
%typemap(javaout) mraa_result_t {
return $jnicall;
}
%typemap(out) mraa_result_t {
$result = (int)$1;
}
%include "grove.h"