diff options
author | Chris Hall <chris.hall@highwayman.com> | 2011-03-30 12:22:34 +0100 |
---|---|---|
committer | Chris Hall <chris.hall@highwayman.com> | 2011-03-30 12:22:34 +0100 |
commit | f3255d1e9f062e7783b05ab5b32ca70085170d79 (patch) | |
tree | 2545e94650e88237baf6c0e04758f00e87dc335a /lib/vty_io.h | |
parent | 9c99076cf33bfa874db34151e28822f0e392ab3a (diff) | |
download | quagga-f3255d1e9f062e7783b05ab5b32ca70085170d79.tar.bz2 quagga-f3255d1e9f062e7783b05ab5b32ca70085170d79.tar.xz |
Better mechanism for handling depth_mark in vty->vio.
Previous mechanism required special steps before any new output vty
was opened -- which was easy to forget. New mechanism requires
extra step when input and output are opened at the same time, which
is less common, and more obviously requires the extra step.
Fixes problem with "write memory" command.
Diffstat (limited to 'lib/vty_io.h')
-rw-r--r-- | lib/vty_io.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/vty_io.h b/lib/vty_io.h index 24790526..59ffb808 100644 --- a/lib/vty_io.h +++ b/lib/vty_io.h @@ -343,8 +343,6 @@ struct vty_io /* typedef appears above */ vio_vf vout_base ; uint vout_depth ; - uint depth_mark ; /* vin_depth before pipes opened */ - /* Error handling */ bool err_hard ; /* eg I/O error */ vio_fifo ebuf ; /* buffer for error message */ @@ -441,6 +439,7 @@ extern void uty_vout_push(vty_io vio, vio_vf vf, vio_out_type_t type, vio_vfd_action* write_action, vio_timer_action* write_timer_action, usize obuf_size) ; +extern void uty_vout_sync_depth(vty_io vio) ; extern cmd_return_code_t uty_vin_pop(vty_io vio, bool final, cmd_context context) ; extern cmd_return_code_t uty_vout_pop(vty_io vio, bool final) ; |