From 5a09f75c1e7f66869da4a17c4cc417d367687b72 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Mon, 11 Jun 2018 04:58:53 +0700 Subject: gsm/gsm0480: refactor and expose gsm0480_parse_facility_ie() This function can be used when there is only a part of GSM 04.80 message available - Facility IE, e.g. when a message is carried over GSUP/MAP. Let's expose it. Refactoring includes the following: - adding the 'gsm0480_' prefix; - correcting inverted return value; - cosmetic code style changes. Change-Id: I623c39ffbe6cdee65eade8435a2faa04d0da193e --- include/osmocom/gsm/gsm0480.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/osmocom/gsm/gsm0480.h') diff --git a/include/osmocom/gsm/gsm0480.h b/include/osmocom/gsm/gsm0480.h index b31f8a71..fafa1f4b 100644 --- a/include/osmocom/gsm/gsm0480.h +++ b/include/osmocom/gsm/gsm0480.h @@ -93,6 +93,8 @@ struct ss_request { int gsm0480_extract_ie_by_tag(const struct gsm48_hdr *hdr, uint16_t msg_len, uint8_t **ie, uint16_t *ie_len, uint8_t ie_tag); +int gsm0480_parse_facility_ie(const uint8_t *facility_ie, uint16_t length, + struct ss_request *req); int gsm0480_decode_ss_request(const struct gsm48_hdr *hdr, uint16_t len, struct ss_request *request); -- cgit v1.2.3