From 6d867d1d08490a270be86911b74fcf0a8cede44d Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 27 Sep 2018 01:21:45 +0200 Subject: cosmetic: allocate ss7->sccp in one common function Instead of allocating ss7->sccp in various places, unify that in one common function. We shouldn't spread the decision what to pass as priv pointer around everywhere. There is no functional difference. This is preparation for a patch where the sccp_instance gets allocated from the telnet VTY: I would prefer to hide all allocation details from that code; which also makes sense for the other callers of osmo_sccp_instance_create(). Change-Id: Ie912898c66d31ce4ac8eeeea5a6ddc3f821c06f7 --- include/osmocom/sigtran/osmo_ss7.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/osmocom/sigtran/osmo_ss7.h b/include/osmocom/sigtran/osmo_ss7.h index a93c663..34d5408 100644 --- a/include/osmocom/sigtran/osmo_ss7.h +++ b/include/osmocom/sigtran/osmo_ss7.h @@ -111,6 +111,8 @@ int osmo_ss7_instance_set_pc_fmt(struct osmo_ss7_instance *inst, int osmo_ss7_instance_bind(struct osmo_ss7_instance *inst); int osmo_ss7_bind_all_instances(); +struct osmo_sccp_instance *osmo_ss7_ensure_sccp(struct osmo_ss7_instance *inst); + /*********************************************************************** * MTP Users (Users of MTP, such as SCCP or ISUP) ***********************************************************************/ -- cgit v1.2.3