--- upstream/dynamips-0.2.6-RC1/dev_vtty.h 2007/10/06 16:03:58 2 +++ upstream/dynamips-0.2.7/dev_vtty.h 2007/10/06 16:29:14 10 @@ -1,5 +1,5 @@ /* - * Cisco 7200 (Predator) simulation platform. + * Cisco router simulation platform. * Copyright (c) 2005,2006 Christophe Fillot (cf@utc.fr) * * Virtual console TTY. @@ -65,6 +65,7 @@ int tcp_port; int terminal_support; int input_state; + int input_pending; int telnet_cmd, telnet_opt, telnet_qual; int fd,accept_fd,*select_fd; int managed_flush; @@ -89,12 +90,18 @@ /* delete a virtual tty */ void vtty_delete(vtty_t *vtty); +/* Store a string in the FIFO buffer */ +int vtty_store_str(vtty_t *vtty,char *str); + /* read a character from the buffer (-1 if the buffer is empty) */ int vtty_get_char(vtty_t *vtty); /* print a character to vtty */ void vtty_put_char(vtty_t *vtty, char ch); +/* Put a buffer to vtty */ +void vtty_put_buffer(vtty_t *vtty,char *buf,size_t len); + /* Flush VTTY output */ void vtty_flush(vtty_t *vtty);