From bd6c8b508157ca68bb04bc1fa2ac0cf1dfc898f2 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 22 Mar 2018 14:05:21 +0100 Subject: deprecate PLMN de-/coding functions incapable of 3-digit MNC with leading zeros All our projects have seen patches to move to 3-digit MNC handling. Furthermore, since our builds no longer break from deprecation warnings, I shall no longer refrain from deprecating old API. Change-Id: I55dfaf7ce74870de44120b26c42d45bb7b184341 --- include/osmocom/gsm/gsm0808.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/osmocom/gsm/gsm0808.h') diff --git a/include/osmocom/gsm/gsm0808.h b/include/osmocom/gsm/gsm0808.h index bbde1a51..369d713c 100644 --- a/include/osmocom/gsm/gsm0808.h +++ b/include/osmocom/gsm/gsm0808.h @@ -33,11 +33,12 @@ struct msgb; struct gsm0808_cell_id_list2; struct msgb *gsm0808_create_layer3(struct msgb *msg_l3, uint16_t nc, - uint16_t cc, int lac, uint16_t _ci); + uint16_t cc, int lac, uint16_t _ci) + OSMO_DEPRECATED("Use gsm0808_create_layer3_2() instead, to not lose leading zeros in the MNC"); struct msgb *gsm0808_create_layer3_aoip(const struct msgb *msg_l3, uint16_t nc, uint16_t cc, int lac, uint16_t _ci, - const struct gsm0808_speech_codec_list - *scl); + const struct gsm0808_speech_codec_list *scl) + OSMO_DEPRECATED("Use gsm0808_create_layer3_2() instead, to not lose leading zeros in the MNC"); struct msgb *gsm0808_create_layer3_2(const struct msgb *msg_l3, const struct osmo_cell_global_id *cell, const struct gsm0808_speech_codec_list *scl); struct msgb *gsm0808_create_reset(void); -- cgit v1.2.3