/[dynamips]/trunk/dev_vtty.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/dev_vtty.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

upstream/dynamips-0.2.6-RC1/dev_vtty.h revision 2 by dpavlin, Sat Oct 6 16:03:58 2007 UTC upstream/dynamips-0.2.8-RC1/dev_vtty.h revision 11 by dpavlin, Sat Oct 6 16:33:40 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   * Cisco 7200 (Predator) simulation platform.   * Cisco router simulation platform.
3   * Copyright (c) 2005,2006 Christophe Fillot (cf@utc.fr)   * Copyright (c) 2005,2006 Christophe Fillot (cf@utc.fr)
4   *   *
5   * Virtual console TTY.   * Virtual console TTY.
# Line 65  struct virtual_tty { Line 65  struct virtual_tty {
65     int tcp_port;     int tcp_port;
66     int terminal_support;     int terminal_support;
67     int input_state;     int input_state;
68       int input_pending;
69     int telnet_cmd, telnet_opt, telnet_qual;     int telnet_cmd, telnet_opt, telnet_qual;
70     int fd,accept_fd,*select_fd;     int fd,accept_fd,*select_fd;
71     int managed_flush;     int managed_flush;
# Line 89  vtty_t *vtty_create(vm_instance_t *vm,ch Line 90  vtty_t *vtty_create(vm_instance_t *vm,ch
90  /* delete a virtual tty */  /* delete a virtual tty */
91  void vtty_delete(vtty_t *vtty);  void vtty_delete(vtty_t *vtty);
92    
93    /* Store a string in the FIFO buffer */
94    int vtty_store_str(vtty_t *vtty,char *str);
95    
96  /* read a character from the buffer (-1 if the buffer is empty) */  /* read a character from the buffer (-1 if the buffer is empty) */
97  int vtty_get_char(vtty_t *vtty);  int vtty_get_char(vtty_t *vtty);
98    
99  /* print a character to vtty */  /* print a character to vtty */
100  void vtty_put_char(vtty_t *vtty, char ch);  void vtty_put_char(vtty_t *vtty, char ch);
101    
102    /* Put a buffer to vtty */
103    void vtty_put_buffer(vtty_t *vtty,char *buf,size_t len);
104    
105  /* Flush VTTY output */  /* Flush VTTY output */
106  void vtty_flush(vtty_t *vtty);  void vtty_flush(vtty_t *vtty);
107    

Legend:
Removed from v.2  
changed lines
  Added in v.11

  ViewVC Help
Powered by ViewVC 1.1.26