diff options
Diffstat (limited to 'flow-native/include/flow.h')
-rw-r--r-- | flow-native/include/flow.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/flow-native/include/flow.h b/flow-native/include/flow.h index 3b6df24..eacc783 100644 --- a/flow-native/include/flow.h +++ b/flow-native/include/flow.h @@ -11,17 +11,8 @@ #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 { - - int port_fd; // file descriptor of serial port - - /* a pipe is used to abort a serial read by writing something into the - * write end of the pipe */ - int pipe_read_fd; // file descriptor, read end of pipe - int pipe_write_fd; // file descriptor, write end of pipe - -}; +/** Represents an open serial port. */ +struct serial_config; /**Opens a serial port and allocates memory for storing configuration. Note: if this function fails, * any internally allocated resources will be freed. |