aboutsummaryrefslogtreecommitdiff
path: root/flow/src/main/native/include/flow.h
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2014-03-27 20:19:28 +0100
committerJakob Odersky <jodersky@gmail.com>2014-03-27 20:19:28 +0100
commitb6f27be4eda4ec0e50aaca8eb3a117db60b4067e (patch)
treea0f9e2e054e8869b4db4b727d9e3e8e3a8fabd85 /flow/src/main/native/include/flow.h
parentd3960d3748e7b83f3ad18fa226ed88c7a5b01941 (diff)
downloadakka-serial-b6f27be4eda4ec0e50aaca8eb3a117db60b4067e.tar.gz
akka-serial-b6f27be4eda4ec0e50aaca8eb3a117db60b4067e.tar.bz2
akka-serial-b6f27be4eda4ec0e50aaca8eb3a117db60b4067e.zip
re-implement native side (TODO: direct buffers)
Diffstat (limited to 'flow/src/main/native/include/flow.h')
-rw-r--r--flow/src/main/native/include/flow.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/flow/src/main/native/include/flow.h b/flow/src/main/native/include/flow.h
index d6a173e..ff80259 100644
--- a/flow/src/main/native/include/flow.h
+++ b/flow/src/main/native/include/flow.h
@@ -62,7 +62,7 @@ int serial_close(struct serial_config* const serial);
* @return n>0 the number of bytes read into buffer
* @return E_INTERRUPT if the call to this function was interrupted
* @return E_IO on IO error */
-int serial_read(struct serial_config* const serial, unsigned char* const buffer, size_t size);
+int serial_read(struct serial_config* const serial, char* const buffer, size_t size);
/**Cancels a blocked read call. This function is thread safe, i.e. it may be called from a thread even
* while another thread is blocked in a read call.
@@ -77,7 +77,7 @@ int serial_cancel_read(struct serial_config* const serial);
* @param size number of bytes to write from data
* @return n>0 the number of bytes written
* @return E_IO on IO error */
-int serial_write(struct serial_config* const serial, unsigned char* const data, size_t size);
+int serial_write(struct serial_config* const serial, char* const data, size_t size);
/**Sets debugging option. If debugging is enabled, detailed error message are printed from method calls. */
void serial_debug(bool value);