1 %module (directors="1", docstring="Basic Grove sensors") javaupm_grove
2 
3 %include "../upm.i"
4 
5 %feature("director") IsrCallback;
6 
7 %ignore generic_callback_isr;
8 %include "../IsrCallback.h"
9 
10 %apply int {mraa::Edge}
11 
12 %{
13     #include "grove.h"
14 %}
15 /*
16 %typemap(jni) mraa_result_t "jint"
17 %typemap(jstype) mraa_result_t "int"
18 %typemap(jtype) mraa_result_t "int"
19 
20 
21 %typemap(javaout) mraa_result_t {
22     return $jnicall;
23 }
24 
25 
26 %typemap(out) mraa_result_t {
27         $result = (int)$1;
28 }
29 */
30 %include "grove.h"
31 
32