X-Git-Url: https://git.distorted.org.uk/~mdw/jog/blobdiff_plain/2ec1e6937048636ec6761c3a76c5bf9544278601..HEAD:/tx-serial-unix.h diff --git a/tx-serial-unix.h b/tx-serial-unix.h index b61e4ae..e555b32 100644 --- a/tx-serial-unix.h +++ b/tx-serial-unix.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: tx-serial-unix.h,v 1.1 2002/01/25 19:34:45 mdw Exp $ + * $Id: tx-serial-unix.h,v 1.2 2002/01/30 09:25:15 mdw Exp $ * * Unix/POSIX serial port transport * @@ -26,14 +26,6 @@ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: tx-serial-unix.h,v $ - * Revision 1.1 2002/01/25 19:34:45 mdw - * Initial revision - * - */ - #ifndef TX_SERIAL_UNIX_H #define TX_SERIAL_UNIX_H @@ -64,7 +56,9 @@ extern void txsu_shutdown(void); -extern txport *txsu_create(const char */*file*/, const char */*config*/); +extern txport *txsu_create(const char */*file*/); +extern int txsu_configure(txport */*txg*/, + const char */*k*/, const char */*v*/); extern void *txsu_fetch(void */*txv*/); extern ssize_t txsu_write(txport */*txg*/, const void */*p*/, size_t /*sz*/); @@ -77,8 +71,9 @@ extern void txsu_destroy(txport */*txg*/); }; static txport_ops txsu_ops = { - TX_LIST, "serial-unix", txsu_fv, "9600:8-none-1", - txsu_create, txsu_fetch, txsu_write, txsu_destroy + TX_LIST, "serial-unix", txsu_fv, + "flow=none;baud=9600;format=8-odd-1;newline=cr", + txsu_create, txsu_configure, txsu_fetch, txsu_write, txsu_destroy }; # undef TX_LIST # define TX_LIST &txsu_ops