aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-02-17 14:10:41 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-02-17 14:11:33 +0100
commit515e341ff673df303cd49146ee774d4baa72e0e2 (patch)
tree5ae851c7c22bf0840bee98956360ec4dc180d082
parent8bda7a77660d3eb429b360a7adf2f6118a965f57 (diff)
osmo-mgw: Add talloc context introspection via VTY
This requires libosmocore with Change-Id I43fc42880b22294d83c565ae600ac65e4f38b30d or later. Change-Id: I59feac155ba2342fcc2b27b029e803b8a10da2d3
-rw-r--r--src/osmo-mgw/mgw_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osmo-mgw/mgw_main.c b/src/osmo-mgw/mgw_main.c
index f95a1c7ff..776203226 100644
--- a/src/osmo-mgw/mgw_main.c
+++ b/src/osmo-mgw/mgw_main.c
@@ -53,6 +53,7 @@
#include <osmocom/vty/ports.h>
#include <osmocom/vty/command.h>
#include <osmocom/vty/stats.h>
+#include <osmocom/vty/misc.h>
#include "../../bscconfig.h"
@@ -256,6 +257,8 @@ int main(int argc, char **argv)
int rc;
tall_bsc_ctx = talloc_named_const(NULL, 1, "mgcp-callagent");
+ vty_info.tall_ctx = tall_bsc_ctx;
+
msgb_talloc_ctx_init(tall_bsc_ctx, 0);
osmo_init_ignore_signals();
@@ -268,6 +271,7 @@ int main(int argc, char **argv)
vty_info.copyright = osmomgw_copyright;
vty_init(&vty_info);
logging_vty_add_cmds(NULL);
+ osmo_talloc_vty_add_cmds();
osmo_stats_vty_add_cmds(&log_info);
mgcp_vty_init();