changeset 3027:4df50cbc6176

* src/common/termiostty.c: Add a possibility to define a few additional DEVTAB entries. * src/common/tty.c: Same.
author sergeig
date Wed, 30 Mar 2011 16:39:44 +0000
parents 03f0c5170e9d
children ca5a6d972d84
files packages/io/serial/current/ChangeLog packages/io/serial/current/src/common/termiostty.c packages/io/serial/current/src/common/tty.c
diffstat 3 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packages/io/serial/current/ChangeLog
+++ b/packages/io/serial/current/ChangeLog
@@ -1,3 +1,10 @@
+2011-03-28  Ilija Kocho  <ilijak@siva.com.mk>
+	    Sergei Gavrikov  <sergei.gavrikov@gmail.com>
+
+	* src/common/termiostty.c: Add a possibility to define a few
+	additional DEVTAB entries.
+	* src/common/tty.c: Same.
+
 2010-06-02	Jay Foster	<jay@systech.com>
 
 	* src/common/termios.c : Fix tcflush() and tcdrain().  They were
--- a/packages/io/serial/current/src/common/termiostty.c
+++ b/packages/io/serial/current/src/common/termiostty.c
@@ -166,6 +166,11 @@ DEVTAB_ENTRY(termios_io3,
              &termios_private_info3);
 #endif
 
+// More DEVTAB entries can be added using an inclusion
+#ifdef CYGDAT_IO_SERIAL_TERMIOS_ADD_INL
+# include CYGDAT_IO_SERIAL_TERMIOS_ADD_INL
+#endif
+
 static const cc_t c_cc_init[ NCCS ] = { 
     0x04,     /* EOF == ^D */
     0,        /* EOL */
--- a/packages/io/serial/current/src/common/tty.c
+++ b/packages/io/serial/current/src/common/tty.c
@@ -137,6 +137,11 @@ DEVTAB_ENTRY(tty_io3,
              &tty_private_info3);
 #endif
 
+// More DEVTAB entries can be added using an inclusion
+#ifdef CYGDAT_IO_SERIAL_TTY_ADD_INL
+# include CYGDAT_IO_SERIAL_TTY_ADD_INL
+#endif
+
 static bool 
 tty_init(struct cyg_devtab_entry *tab)
 {