summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/osmocom/sigtran/sccp_sap.h2
-rw-r--r--src/sccp_user.c10
2 files changed, 12 insertions, 0 deletions
diff --git a/include/osmocom/sigtran/sccp_sap.h b/include/osmocom/sigtran/sccp_sap.h
index c1464f0..a86f86a 100644
--- a/include/osmocom/sigtran/sccp_sap.h
+++ b/include/osmocom/sigtran/sccp_sap.h
@@ -232,6 +232,8 @@ osmo_sccp_instance_create(struct osmo_ss7_instance *ss7, void *priv);
void osmo_sccp_instance_destroy(struct osmo_sccp_instance *inst);
void osmo_sccp_user_unbind(struct osmo_sccp_user *scu);
+void osmo_sccp_user_set_priv(struct osmo_sccp_user *scu, void *priv);
+void *osmo_sccp_user_get_priv(struct osmo_sccp_user *scu);
struct osmo_sccp_user *
osmo_sccp_user_bind_pc(struct osmo_sccp_instance *inst, const char *name,
diff --git a/src/sccp_user.c b/src/sccp_user.c
index df02486..bc03f4e 100644
--- a/src/sccp_user.c
+++ b/src/sccp_user.c
@@ -130,6 +130,16 @@ void osmo_sccp_user_unbind(struct osmo_sccp_user *scu)
talloc_free(scu);
}
+void osmo_sccp_user_set_priv(struct osmo_sccp_user *scu, void *priv)
+{
+ scu->priv = priv;
+}
+
+void *osmo_sccp_user_get_priv(struct osmo_sccp_user *scu)
+{
+ return scu->priv;
+}
+
/*! \brief Send a SCCP User SAP Primitive up to the User
* \param[in] scu SCCP User to whom to send the primitive
* \param[in] prim Primitive to send to the user