aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-04-07 18:43:22 +0200
committerHarald Welte <laforge@gnumonks.org>2017-04-09 18:50:47 +0200
commit384dda2113ab193274c130b1befe08ab9b49007a (patch)
treeaed5dcd50dab9286758dccee43fa67c0dcaf6034
parent0ed90232e163ff039aec7e98813242f9ca74ae5a (diff)
Add osmo_sccp_get_ss7() accessor function
as 'struct osmo_sccp_instance' is opaque to the user application, it is useful to have an accessor function that resolves the ss7 instance used by the SCCP instance. Change-Id: I8057a6d69584239b9781c5cece42066293ea1dd6
-rw-r--r--include/osmocom/sigtran/sccp_sap.h1
-rw-r--r--src/sccp_user.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocom/sigtran/sccp_sap.h b/include/osmocom/sigtran/sccp_sap.h
index a86f86a..fd25752 100644
--- a/include/osmocom/sigtran/sccp_sap.h
+++ b/include/osmocom/sigtran/sccp_sap.h
@@ -230,6 +230,7 @@ struct osmo_sccp_user;
struct osmo_sccp_instance *
osmo_sccp_instance_create(struct osmo_ss7_instance *ss7, void *priv);
void osmo_sccp_instance_destroy(struct osmo_sccp_instance *inst);
+struct osmo_ss7_instance *osmo_sccp_get_ss7(struct osmo_sccp_instance *sccp);
void osmo_sccp_user_unbind(struct osmo_sccp_user *scu);
void osmo_sccp_user_set_priv(struct osmo_sccp_user *scu, void *priv);
diff --git a/src/sccp_user.c b/src/sccp_user.c
index 297d939..9ed57d4 100644
--- a/src/sccp_user.c
+++ b/src/sccp_user.c
@@ -388,3 +388,8 @@ out_strings:
return NULL;
}
+
+struct osmo_ss7_instance *osmo_sccp_get_ss7(struct osmo_sccp_instance *sccp)
+{
+ return sccp->ss7;
+}