diff options
author | Chris Hall <chris.hall@highwayman.com> | 2011-03-21 01:16:05 +0000 |
---|---|---|
committer | Chris Hall <chris.hall@highwayman.com> | 2011-03-21 01:16:05 +0000 |
commit | 9470cb2c32eab220f796b1438b787528272cbe84 (patch) | |
tree | b9b2cc12446173436d2bc7a32e82cc3378ec721e /lib/vty_io_file.h | |
parent | 5cae7eea451f2b7d65b5892e2c1dafc70f8b836e (diff) | |
download | quagga-ex11p.tar.bz2 quagga-ex11p.tar.xz |
Upgrade of "pipework" -- including piping to/from shell commandsex11p
Version 0.99.15ex11p
A major overhaul.
Diffstat (limited to 'lib/vty_io_file.h')
-rw-r--r-- | lib/vty_io_file.h | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/lib/vty_io_file.h b/lib/vty_io_file.h index ab852e08..5bb5a607 100644 --- a/lib/vty_io_file.h +++ b/lib/vty_io_file.h @@ -26,6 +26,7 @@ #include "misc.h" #include "vty_io.h" +#include "command_parse.h" /*============================================================================== * Here are structures and other definitions which are shared by: @@ -38,16 +39,32 @@ /*============================================================================== * Functions */ +extern vty vty_config_read_open(int fd, const char* name, bool full_lex) ; +extern cmd_return_code_t uty_config_read_close(vio_vf vf, bool final) ; extern cmd_return_code_t uty_file_read_open(vty_io vio, qstring name, - bool reflect) ; + cmd_context context) ; extern cmd_return_code_t uty_file_write_open(vty_io vio, qstring name, - bool append) ; + bool append, cmd_context context) ; -extern cmd_return_code_t uty_file_fetch_command_line(vio_vf vf, qstring* line) ; -extern cmd_return_code_t uty_file_out_push(vio_vf vf) ; +extern cmd_return_code_t uty_file_fetch_command_line(vio_vf vf, + cmd_action action) ; +extern cmd_return_code_t uty_file_out_push(vio_vf vf, bool final) ; -extern void uty_file_read_close(vio_vf vf) ; -extern bool uty_file_write_close(vio_vf vf, bool final) ; +extern cmd_return_code_t uty_file_read_close(vio_vf vf, bool final) ; +extern cmd_return_code_t uty_file_write_close(vio_vf vf, bool final, bool base) ; -#endif /* _ZEBRA_VTY_IO_FILE_H */ + +extern cmd_return_code_t uty_pipe_read_open(vty_io vio, qstring command, + cmd_context context) ; +extern cmd_return_code_t uty_pipe_write_open(vty_io vio, qstring command, + bool shell_only) ; +extern cmd_return_code_t uty_pipe_fetch_command_line(vio_vf vf, + cmd_action action) ; +extern cmd_return_code_t uty_pipe_out_push(vio_vf vf, bool final) ; +extern void uty_pipe_return_slave_ready(vio_vf slave) ; +extern cmd_return_code_t uty_pipe_read_close(vio_vf vf, bool final) ; +extern cmd_return_code_t uty_pipe_write_close(vio_vf vf, bool final, bool base, + bool shell_only) ; + +#endif |