[MERGED] osmo-bsc[master]: BSSAP: document match_codec_pref() more thoroughly

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.org
Thu Mar 22 15:15:14 UTC 2018


Harald Welte has submitted this change and it was merged.

Change subject: BSSAP: document match_codec_pref() more thoroughly
......................................................................


BSSAP: document match_codec_pref() more thoroughly

Change-Id: If08c2c2db674d6ddc43339744a78b1632d075d4a
---
M src/osmo-bsc/osmo_bsc_bssap.c
1 file changed, 8 insertions(+), 2 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo-bsc/osmo_bsc_bssap.c b/src/osmo-bsc/osmo_bsc_bssap.c
index 04847b2..3cd6051 100644
--- a/src/osmo-bsc/osmo_bsc_bssap.c
+++ b/src/osmo-bsc/osmo_bsc_bssap.c
@@ -153,8 +153,14 @@
 	return false;
 }
 
-/* Helper function for bssmap_handle_assignm_req(), matches the codec
- * preferences from the MSC with the codec preferences */
+/*! Helper function for bssmap_handle_assignm_req(), matches the codec
+ *  preferences from the MSC with the codec preferences
+ *  \param[out] full_rate '1' if full-rate, '0' if half-rate, '-1' if no match
+ *  \param[out] chan_mode GSM 04.08 channel mode
+ *  \param[in] ct GSM 08.08 channel type
+ *  \param[in] scl GSM 08.08 speech codec list
+ *  \param[in] msc MSC data [for configuration]
+ *  \returns 0 on success, -1 in case no match was found */
 static int match_codec_pref(int *full_rate, enum gsm48_chan_mode *chan_mode,
 			    const struct gsm0808_channel_type *ct,
 			    const struct gsm0808_speech_codec_list *scl,

-- 
To view, visit https://gerrit.osmocom.org/7432
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If08c2c2db674d6ddc43339744a78b1632d075d4a
Gerrit-PatchSet: 2
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list