From 11eb4b5add41ec6722fdba2f2023e87543e0507b Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 9 Jun 2018 17:41:31 +0200 Subject: vty: Add logging_vty_add_deprecated_subsys This function permits the user to register deprecated log categories, which will ensure that if log categories are removed from a program, old config files will still load. We simply dynamically allocate a cmd_element and install it at CFG_LOG_NODE. Not registering it at VIEW_NODE or ENABLE_NODE ensures that it's not accessible from the interactive VTY, but only from the config file / configure node. Change-Id: I171f62ea2dc565b3a6c3eecd27fb7853e2529598 --- include/osmocom/vty/logging.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/osmocom/vty/logging.h') diff --git a/include/osmocom/vty/logging.h b/include/osmocom/vty/logging.h index 1baa3f83..90c8fa17 100644 --- a/include/osmocom/vty/logging.h +++ b/include/osmocom/vty/logging.h @@ -7,5 +7,6 @@ struct log_info; void logging_vty_add_cmds(); +void logging_vty_add_deprecated_subsys(void *ctx, const char *name); struct vty; struct log_target *osmo_log_vty2tgt(struct vty *vty); -- cgit v1.2.3