diff options
author | Jakob Odersky <jodersky@gmail.com> | 2013-06-21 22:42:48 +0200 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2013-06-21 22:42:48 +0200 |
commit | 5652600a7c6c9d8dbd715e077f3bca320d3e765b (patch) | |
tree | c919cb16d3b15e464482ec08274a3d19e2a88d5d /src/main/native/flow.h | |
parent | 554ba2a2227374f2078e80bca292aed02465e10f (diff) | |
download | akka-serial-5652600a7c6c9d8dbd715e077f3bca320d3e765b.tar.gz akka-serial-5652600a7c6c9d8dbd715e077f3bca320d3e765b.tar.bz2 akka-serial-5652600a7c6c9d8dbd715e077f3bca320d3e765b.zip |
synchronization
Diffstat (limited to 'src/main/native/flow.h')
-rw-r--r-- | src/main/native/flow.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/native/flow.h b/src/main/native/flow.h index 97eae83..d1823c1 100644 --- a/src/main/native/flow.h +++ b/src/main/native/flow.h @@ -38,8 +38,10 @@ int serial_open(const char* port_name, int baud, struct serial_config** serial); * this function, the 'serial' pointer will become invalid, make sure you only call it once. This function is NOT * thread safe, make sure no read or write is in prgress when this function is called (the reason is that per * close manual page, close should not be called on a file descriptor that is in use by another thread). - * @param serial pointer to serial configuration that is to be closed (and freed) */ -void serial_close(struct serial_config* serial); + * @param serial pointer to serial configuration that is to be closed (and freed) + * @return 0 on success + * @return E_IO on error */ +int serial_close(struct serial_config* serial); /**Starts a blocking read from a previously opened serial port. The read is blocking, however it may be * interrupted by calling 'serial_interrupt' on the given serial port. |