summaryrefslogtreecommitdiff
path: root/lib/command.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2020-10-30 14:10:55 -0400
committerDonald Sharp <sharpd@nvidia.com>2020-11-19 09:52:11 -0500
commitf8e6ada8821d5992e5680ff660fc9bd1691f8ae2 (patch)
tree15e27819bf0cbf9d1fa0d2fa0d892ce98e7de31e /lib/command.h
parent53a85efa514b88be08c29dfe539612e58f2d2fb3 (diff)
lib, sharpd, vtysh: When reading a file in for config send start/end indicators
When reading a file in for configuration, send start and end indicators to interested parties. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/command.h')
-rw-r--r--lib/command.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/command.h b/lib/command.h
index bb007b0868..e529239f65 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -530,7 +530,9 @@ extern int cmd_execute_command(vector, struct vty *,
const struct cmd_element **, int);
extern int cmd_execute_command_strict(vector, struct vty *,
const struct cmd_element **);
-extern void cmd_init(int);
+extern void cmd_init(int terminal);
+extern void cmd_init_config_callbacks(void (*start_config)(void),
+ void (*end_config)(void));
extern void cmd_terminate(void);
extern void cmd_exit(struct vty *vty);
extern int cmd_list_cmds(struct vty *vty, int do_permute);