From: Christian Franke <[email protected]>
Signed-off-by: Christian Franke <[email protected]>
---
lib/command.c | 6 ++++++
lib/command.h | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/command.c b/lib/command.c
index 8089360..46ed9c7 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -4105,6 +4105,12 @@ host_config_set (char *filename)
host.config = XSTRDUP (MTYPE_HOST, filename);
}
+const char *
+host_config_get (void)
+{
+ return host.config;
+}
+
void
install_default (enum node_type node)
{
diff --git a/lib/command.h b/lib/command.h
index 6a20e23..09bc516 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -556,7 +556,7 @@ extern struct cmd_element config_exit_cmd;
extern struct cmd_element config_quit_cmd;
extern struct cmd_element config_help_cmd;
extern struct cmd_element config_list_cmd;
-extern char *host_config_file (void);
+extern const char *host_config_get (void);
extern void host_config_set (char *);
extern void print_version (const char *);
--
2.8.0
_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev