diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-02-14 00:52:05 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-02-14 08:25:52 +0100 |
commit | 7ee6e554afa1a9847c38638cffe99e5d019b7d1b (patch) | |
tree | 331fac56ba1c050accce1dcd2588a847162d070b /src | |
parent | 9214c6c7ef61208d4a6dee3f698fc2995e33b033 (diff) |
osmo-hlr: Add talloc context introspection via VTY
This requires libosmocore with Change-Id
I43fc42880b22294d83c565ae600ac65e4f38b30d or later.
Change-Id: Ibc2c333b83f85fa69a364e3e342f12f50dbc2f70
Diffstat (limited to 'src')
-rw-r--r-- | src/hlr.c | 1 | ||||
-rw-r--r-- | src/hlr_vty.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -439,6 +439,7 @@ int main(int argc, char **argv) hlr_ctx = talloc_named_const(NULL, 1, "OsmoHLR"); msgb_talloc_ctx_init(hlr_ctx, 0); + vty_info.tall_ctx = hlr_ctx; g_hlr = talloc_zero(hlr_ctx, struct hlr); diff --git a/src/hlr_vty.c b/src/hlr_vty.c index 202f7f7..c10829d 100644 --- a/src/hlr_vty.c +++ b/src/hlr_vty.c @@ -24,6 +24,7 @@ #include <osmocom/vty/vty.h> #include <osmocom/vty/command.h> #include <osmocom/vty/logging.h> +#include <osmocom/vty/misc.h> #include "hlr_vty.h" #include "hlr_vty_subscr.h" @@ -126,6 +127,7 @@ void hlr_vty_init(struct hlr *hlr, const struct log_info *cat) g_hlr = hlr; logging_vty_add_cmds(cat); + osmo_talloc_vty_add_cmds(); install_element(CONFIG_NODE, &cfg_hlr_cmd); install_node(&hlr_node, config_write_hlr); |