mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 01:10:22 +03:00
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:
parent
78a159594b
commit
8b9267c253
@ -4,7 +4,7 @@
|
|||||||
%{
|
%{
|
||||||
#include "grove.h"
|
#include "grove.h"
|
||||||
%}
|
%}
|
||||||
|
/*
|
||||||
%typemap(jni) mraa_result_t "jint"
|
%typemap(jni) mraa_result_t "jint"
|
||||||
%typemap(jstype) mraa_result_t "int"
|
%typemap(jstype) mraa_result_t "int"
|
||||||
%typemap(jtype) mraa_result_t "int"
|
%typemap(jtype) mraa_result_t "int"
|
||||||
@ -18,6 +18,6 @@
|
|||||||
%typemap(out) mraa_result_t {
|
%typemap(out) mraa_result_t {
|
||||||
$result = (int)$1;
|
$result = (int)$1;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
%include "grove.h"
|
%include "grove.h"
|
||||||
|
|
||||||
|
@ -2,8 +2,11 @@
|
|||||||
%include "stdint.i"
|
%include "stdint.i"
|
||||||
%include "upm_exception.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)
|
#if (SWIG_JAVASCRIPT_V8)
|
||||||
%{
|
%{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user