From 41b6803fd5d69b3a0f126e75d7734425c57644ee Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 27 Jul 2017 14:33:46 +0200 Subject: osmo_ss7_vty_init: ensure a talloc ctx is set by user Drop the separate osmo_ss7_set_vty_alloc_ctx() because we are likely to forget calling it. Instead, incorporate into osmo_ss7_vty_init_*() with a new ctx arg, and set the static context var in vty_init_shared(). Change-Id: Id4e7f47979001f7856b0b3665c9e94982e75e490 --- include/osmocom/sigtran/osmo_ss7.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/osmocom/sigtran/osmo_ss7.h b/include/osmocom/sigtran/osmo_ss7.h index 87ace4a..bbe425c 100644 --- a/include/osmocom/sigtran/osmo_ss7.h +++ b/include/osmocom/sigtran/osmo_ss7.h @@ -471,8 +471,7 @@ int osmo_ss7_tmode_to_xua(enum osmo_ss7_as_traffic_mode tmod); /* VTY related */ struct vty; -void osmo_ss7_set_vty_alloc_ctx(void *ctx); -void osmo_ss7_vty_init_asp(void); -void osmo_ss7_vty_init_sg(void); +void osmo_ss7_vty_init_asp(void *ctx); +void osmo_ss7_vty_init_sg(void *ctx); int osmo_ss7_vty_go_parent(struct vty *vty); int osmo_ss7_is_config_node(struct vty *vty, int node); -- cgit v1.2.3