upm/src/upm.i
Petre Eftime 2cab79b4c2 java: Changed size_t and unsigned int to int in array declarations. Renamed buf to buffer where necesarry. Moved most Java array typemaps to java_buffer.i. Fixed some String buffers.
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>

Conflicts:
	src/upm.i
2015-09-15 17:01:39 -07:00

37 lines
888 B
OpenEdge ABL

%include "std_string.i"
%include "stdint.i"
%include "upm_exception.i"
#if (SWIGJAVA)
/* %include "arrays_java.i"; */
/* %apply unsigned char[] {uint8_t *mama}; */
%apply int { speed_t };
%apply int { mraa_result_t };
%apply int { mraa::Result };
#else
%typemap(out) mraa_result_t = int;
#endif
#if (SWIG_JAVASCRIPT_V8)
%{
// Because there's no guarantee that v8 will ever call garbage collection,
// we're adding a function that will allow a user to call it manually
void cleanUp()
{
// Call the v8 garbage collector as long as there is memory to clean up
// See https://codereview.chromium.org/412163003 for this API change
#if (SWIG_V8_VERSION < 0x032838)
while (!v8::V8::IdleNotification())
#else
while (!v8::Isolate::GetCurrent()->IdleNotification(1000))
#endif
{;}
}
%}
void cleanUp();
#endif
#if (SWIGJAVA)
#endif