tty-handler: move baud rate parsing into config.c

This is in preparation for being able to set the baud rate on the host
console tty.

Change-Id: Id279530bdfc1240649fcdd606fbc928437fc38dc
Signed-off-by: Benjamin Fair <benjaminfair@google.com>
diff --git a/console-server.h b/console-server.h
index 9571ff9..0be567e 100644
--- a/console-server.h
+++ b/console-server.h
@@ -15,8 +15,9 @@
  */
 
 #include <poll.h>
-#include <stdint.h>
 #include <stdbool.h>
+#include <stdint.h>
+#include <termios.h> /* for speed_t */
 
 struct console;
 struct config;
@@ -116,6 +117,8 @@
 struct config *config_init(const char *filename);
 void config_fini(struct config *config);
 
+int config_parse_baud(speed_t *speed, const char *baud_string);
+
 /* socket paths */
 extern const char *console_socket_path;
 extern const size_t console_socket_path_len;