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
This commit is contained in:
Petre Eftime
2015-09-07 19:00:30 +03:00
committed by Mihai Tudor Panu
parent ab730038fd
commit 2cab79b4c2
50 changed files with 237 additions and 326 deletions

View File

@ -89,7 +89,7 @@ bool HM11::dataAvailable(unsigned int millis)
return false;
}
int HM11::readData(char *buffer, size_t len)
int HM11::readData(char *buffer, int len)
{
if (m_ttyFd == -1)
return(-1);
@ -102,7 +102,7 @@ int HM11::readData(char *buffer, size_t len)
return rv;
}
int HM11::writeData(char *buffer, size_t len)
int HM11::writeData(char *buffer, int len)
{
if (m_ttyFd == -1)
return(-1);

View File

@ -111,7 +111,7 @@ namespace upm {
* @param len Length of the buffer
* @return Number of bytes read
*/
int readData(char *buffer, size_t len);
int readData(char *buffer, int len);
/**
* Writes the data in the buffer to the device
@ -120,7 +120,7 @@ namespace upm {
* @param len Length of the buffer
* @return Number of bytes written
*/
int writeData(char *buffer, size_t len);
int writeData(char *buffer, int len);
/**
* Sets up proper tty I/O modes and the baud rate. For this device, the default

View File

@ -1,6 +1,7 @@
%module javaupm_hm11
%include "../upm.i"
%include "carrays.i"
%include "../java_buffer.i"
%{
#include "hm11.h"