mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 09:51:14 +03:00
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:

committed by
Mihai Tudor Panu

parent
a81b1836a3
commit
d3e0ae5771
@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user