From 02fd83d79991665d59362f24d7a0ed263c6d91c0 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sat, 5 Jan 2019 00:38:54 +0100 Subject: add osmo_mi_name(), for MI-to-string like "IMSI-123456" We have gsm48_mi_to_string() and osmo_bcd2str(), but still lack a function that conveniently prints both MI type and value in one function call. Related: http://people.osmocom.org/neels/mi_mi_mi.jpg Change-Id: I7798c3ef983c2e333b2b9cbffef6f366f370bd81 --- include/osmocom/gsm/gsm48.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/osmocom/gsm/gsm48.h b/include/osmocom/gsm/gsm48.h index 2b14e6cd..0f5727a0 100644 --- a/include/osmocom/gsm/gsm48.h +++ b/include/osmocom/gsm/gsm48.h @@ -53,6 +53,7 @@ uint8_t gsm48_generate_mid(uint8_t *buf, const char *id, uint8_t mi_type); int gsm48_mi_to_string(char *string, const int str_len, const uint8_t *mi, const int mi_len); const char *gsm48_mi_type_name(uint8_t mi); +const char *osmo_mi_name(const uint8_t *mi, uint8_t mi_len); /* Parse Routeing Area Identifier */ void gsm48_parse_ra(struct gprs_ra_id *raid, const uint8_t *buf); -- cgit v1.2.3