aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/vty
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-06-09 17:41:31 +0200
committerHarald Welte <laforge@gnumonks.org>2018-06-09 17:43:33 +0200
commit11eb4b5add41ec6722fdba2f2023e87543e0507b (patch)
treee8dd77be30194b774b4b9ec99f19cbaa3cbbad0d /include/osmocom/vty
parent23a299f0961ac7d9d798dcd86f80e7166763338d (diff)
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
Diffstat (limited to 'include/osmocom/vty')
-rw-r--r--include/osmocom/vty/logging.h1
1 files changed, 1 insertions, 0 deletions
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);