summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-10-28 16:38:55 -0500
committerMarcel Holtmann <marcel@holtmann.org>2009-10-29 17:07:24 +0900
commit56a3dd96bae7bc308edb5c2d9405154ca4fddf4b (patch)
tree1ef5ab3739b98b32dd7bb8a446b05245a7a0bc2d
parent3f0f5eeaf0ff408b73fe051650dc822708064364 (diff)
downloadconnman-56a3dd96bae7bc308edb5c2d9405154ca4fddf4b.tar.gz
connman-56a3dd96bae7bc308edb5c2d9405154ca4fddf4b.tar.bz2
connman-56a3dd96bae7bc308edb5c2d9405154ca4fddf4b.zip
Cleanup previous patch and update docs
-rw-r--r--gatchat/gattty.c2
-rw-r--r--gatchat/gattty.h15
2 files changed, 9 insertions, 8 deletions
diff --git a/gatchat/gattty.c b/gatchat/gattty.c
index 64dd8abb..7d665e1d 100644
--- a/gatchat/gattty.c
+++ b/gatchat/gattty.c
@@ -218,7 +218,7 @@ static int open_device(const char *tty, GHashTable *options)
ok = set_parity(value, &ti);
else if (g_str_equal(key, "XonXoff"))
ok = set_xonxoff(value, &ti);
- else if (g_str_equal(key, "Rtscts"))
+ else if (g_str_equal(key, "RtsCts"))
ok = set_rtscts(value, &ti);
else if (g_str_equal(key, "Local"))
ok = set_local(value, &ti);
diff --git a/gatchat/gattty.h b/gatchat/gattty.h
index 861c4d71..c8e0c8fa 100644
--- a/gatchat/gattty.h
+++ b/gatchat/gattty.h
@@ -32,13 +32,14 @@ extern "C" {
*
* The following keys / values are recognized (all strings)
*
- * "baud" - "300", "600", etc
- * "stopbits" - "1", "2"
- * "databits" - "7", "8"
- * "parity" - "none", "odd", "even"
- * "xonxoff" - "on", "off"
- * "rtscts" - "on", "off"
- * "local" - "on", "off"
+ * "Baud" - "300", "600", etc
+ * "Stopbits" - "1", "2"
+ * "Databits" - "7", "8"
+ * "Parity" - "none", "odd", "even"
+ * "XonXoff" - "on", "off"
+ * "RtsCts" - "on", "off"
+ * "Local" - "on", "off"
+ * "Read" - "on, "off"
*/
GIOChannel *g_at_tty_open(const char *tty, GHashTable *options);