Change in libosmocore[master]: IPA: make deprecation warning external

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/.

Max gerrit-no-reply at lists.osmocom.org
Tue Nov 6 11:09:26 UTC 2018


Max has uploaded this change for review. ( https://gerrit.osmocom.org/11620


Change subject: IPA: make deprecation warning external
......................................................................

IPA: make deprecation warning external

Although ipa_ccm_idtag_parse_off() is deprecated, it's used to implement
ipa_ccm_idtag_parse() in libosmocore which leads to unnecessary
deprecation warning. There's no obvious way to replace it with
recommended functions because ipa_ccm_idtag_parse_off() is not a wrapper
around ipa_ccm_id_{get,resp}_parse() but an independent
implementation. Let's suppress this warning inside libosmocore but keep
deprecation for external projects.

Change-Id: I793c56392834ff2c8cc3a08a9a5c18fbcd4be882
---
M include/osmocom/gsm/ipa.h
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/20/11620/1

diff --git a/include/osmocom/gsm/ipa.h b/include/osmocom/gsm/ipa.h
index 93cb1bf..183f8f5 100644
--- a/include/osmocom/gsm/ipa.h
+++ b/include/osmocom/gsm/ipa.h
@@ -29,7 +29,7 @@
 int ipa_ccm_idtag_parse(struct tlv_parsed *dec, unsigned char *buf, int len)
 	OSMO_DEPRECATED("Use ipa_ccm_id_{get,resp}_parse instead");
 int ipa_ccm_idtag_parse_off(struct tlv_parsed *dec, unsigned char *buf, int len, const int len_offset)
-	OSMO_DEPRECATED("Use ipa_ccm_id_{get,resp}_parse instead");
+	OSMO_DEPRECATED_OUTSIDE_LIBOSMOCORE("Use ipa_ccm_id_{get,resp}_parse instead");
 
 /* parse payload of IPA CCM ID GET into a osmocom TLV style representation */
 int ipa_ccm_id_get_parse(struct tlv_parsed *dec, const uint8_t *buf, unsigned int len);

-- 
To view, visit https://gerrit.osmocom.org/11620
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I793c56392834ff2c8cc3a08a9a5c18fbcd4be882
Gerrit-Change-Number: 11620
Gerrit-PatchSet: 1
Gerrit-Owner: Max <msuraev at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181106/e0ed3bd0/attachment.htm>


More information about the gerrit-log mailing list