This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/24252 ) Change subject: vty: Implement missing public API host_config_file() ...................................................................... vty: Implement missing public API host_config_file() The API was defined in the header file but not implemented. Change-Id: I69de9864fa7cd421557b9fc630beefea6d90b4cc --- M include/osmocom/vty/command.h M src/vty/command.c 2 files changed, 6 insertions(+), 1 deletion(-) Approvals: Jenkins Builder: Verified fixeria: Looks good to me, but someone else must approve laforge: Looks good to me, approved diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h index 228dc5b..81333b4 100644 --- a/include/osmocom/vty/command.h +++ b/include/osmocom/vty/command.h @@ -457,7 +457,7 @@ extern struct cmd_element config_help_cmd; extern struct cmd_element config_list_cmd; extern struct cmd_element config_end_cmd; -char *host_config_file(); +const char *host_config_file(void); void host_config_set(const char *); char *osmo_asciidoc_escape(const char *inp); diff --git a/src/vty/command.c b/src/vty/command.c index 4825109..6d63d84 100644 --- a/src/vty/command.c +++ b/src/vty/command.c @@ -4219,6 +4219,11 @@ host.config = talloc_strdup(tall_vty_cmd_ctx, filename); } +const char *host_config_file(void) +{ + return host.config; +} + /*! Deprecated, now happens implicitly when calling install_node(). * Users of the API may still attempt to call this function, hence * leave it here as a no-op. */ -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/24252 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I69de9864fa7cd421557b9fc630beefea6d90b4cc Gerrit-Change-Number: 24252 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin at sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de> Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210517/bf758cc6/attachment.htm>