This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/2234 sccp: add osmo_sccp_user_get_priv() API function As 'struct osmo_sccp_user' is private, we need this accessor function for the SCCP User so it can resolve the 'priv' that was passed in when binding the SCCP user to a given SSN. Change-Id: Ia68a36dc18a7d754d63ae29c86d68e495b5c4134 --- M include/osmocom/sigtran/sccp_sap.h M src/sccp_user.c 2 files changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/34/2234/1 diff --git a/include/osmocom/sigtran/sccp_sap.h b/include/osmocom/sigtran/sccp_sap.h index c1464f0..a35af56 100644 --- a/include/osmocom/sigtran/sccp_sap.h +++ b/include/osmocom/sigtran/sccp_sap.h @@ -232,6 +232,7 @@ void osmo_sccp_instance_destroy(struct osmo_sccp_instance *inst); void osmo_sccp_user_unbind(struct osmo_sccp_user *scu); +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..5c8d026 100644 --- a/src/sccp_user.c +++ b/src/sccp_user.c @@ -130,6 +130,11 @@ talloc_free(scu); } +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 -- To view, visit https://gerrit.osmocom.org/2234 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia68a36dc18a7d754d63ae29c86d68e495b5c4134 Gerrit-PatchSet: 1 Gerrit-Project: libosmo-sccp Gerrit-Branch: master Gerrit-Owner: Harald Welte <laforge at gnumonks.org>