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.orgHarald Welte has submitted this change and it was merged. Change subject: sccp: add osmo_sccp_user_{get,set}_priv() API function ...................................................................... sccp: add osmo_sccp_user_{get,set}_priv() API function As 'struct osmo_sccp_user' is private, we need this accessor functions for the SCCP User so it can set and get the 'priv' data. Change-Id: Ia68a36dc18a7d754d63ae29c86d68e495b5c4134 --- M include/osmocom/sigtran/sccp_sap.h M src/sccp_user.c 2 files changed, 12 insertions(+), 0 deletions(-) Approvals: Harald Welte: Looks good to me, approved Jenkins Builder: Verified 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 @@ 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 @@ 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 -- To view, visit https://gerrit.osmocom.org/2234 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ia68a36dc18a7d754d63ae29c86d68e495b5c4134 Gerrit-PatchSet: 5 Gerrit-Project: libosmo-sccp Gerrit-Branch: master Gerrit-Owner: Harald Welte <laforge at gnumonks.org> Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org> Gerrit-Reviewer: Jenkins Builder