Harald Welte has submitted this change and it was merged.

Change subject: osmo-mgw: Add talloc context introspection via VTY
......................................................................


osmo-mgw: Add talloc context introspection via VTY

This requires libosmocore with Change-Id
I43fc42880b22294d83c565ae600ac65e4f38b30d or later.

Change-Id: I59feac155ba2342fcc2b27b029e803b8a10da2d3
---
M src/osmo-mgw/mgw_main.c
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo-mgw/mgw_main.c b/src/osmo-mgw/mgw_main.c
index f95a1c7..7762032 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 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 @@
        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();
 

-- 
To view, visit https://gerrit.osmocom.org/6563
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I59feac155ba2342fcc2b27b029e803b8a10da2d3
Gerrit-PatchSet: 1
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofm...@sysmocom.de>
Gerrit-Reviewer: Harald Welte <lafo...@gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Vadim Yanitskiy <axilira...@gmail.com>

Reply via email to