diff options
author | Jakob Odersky <jodersky@gmail.com> | 2013-06-22 01:07:16 +0200 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2013-06-22 01:07:25 +0200 |
commit | 3054b6150429617dff77705f34efb341c17dce1c (patch) | |
tree | 47b09a2a0b50654dccf9e90496b317da541a0a36 /src/main/native/flow.h | |
parent | be1e2330ab84cf449fae664fd0c9788e3ae4af1f (diff) | |
download | akka-serial-3054b6150429617dff77705f34efb341c17dce1c.tar.gz akka-serial-3054b6150429617dff77705f34efb341c17dce1c.tar.bz2 akka-serial-3054b6150429617dff77705f34efb341c17dce1c.zip |
add no such port exception handling
Diffstat (limited to 'src/main/native/flow.h')
-rw-r--r-- | src/main/native/flow.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/native/flow.h b/src/main/native/flow.h index d1823c1..29b8d28 100644 --- a/src/main/native/flow.h +++ b/src/main/native/flow.h @@ -9,6 +9,7 @@ #define E_BUSY -3 // port is busy #define E_INVALID_BAUD -4 // baud rate is not valid #define E_INTERRUPT -5 // not really an error, function call aborted because port is closed +#define E_NO_PORT -6 //contains file descriptors used in managing a serial port struct serial_config { @@ -28,6 +29,7 @@ struct serial_config { * @param baud baud rate * @param serial pointer to memory that will be allocated with a serial structure * @return 0 on success + * @return E_NO_PORT if the given port does not exist * @return E_ACCESS_DENIED if permissions are not sufficient to open port * @return E_BUSY if port is already in use * @return E_INVALID_BAUD if specified baudrate is non-standard |