path: root/include
diff options
authorNeels Hofmeyr <>2018-09-27 01:21:45 +0200
committerNeels Hofmeyr <>2018-09-27 14:44:30 +0200
commit6d867d1d08490a270be86911b74fcf0a8cede44d (patch)
treec1009ad53ab3a0bb21b9afdda5dd89e8e3b7b913 /include
parent00170f0ebf50bd4d04b54a2ffe3b64d06419590e (diff)
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
Diffstat (limited to 'include')
1 files changed, 2 insertions, 0 deletions
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)