aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/gprs/gprs_bssgp_rim.h
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2021-01-25 22:00:01 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2021-01-26 16:36:53 +0100
commitc08a3fd30e293c6f2ac5c6dc1ec1bf6513413791 (patch)
tree5a74bb214c74bd8fdb245e4e91e80cf0db919c71 /include/osmocom/gprs/gprs_bssgp_rim.h
parent445a366c8ac24469cb857f3850679a470a0c37fe (diff)
gprs_bssgp_rim: add functions to convert a RIM-RI to a string
RIM routing formation structs can contain different variants of address identifiers, so it is difficult for an API user to pick the _name() function to generate a human readable string. Lets add bssgp_rim_ri_name() and bssgp_rim_ri_name_buf() to make printing a routing identifier easier. Change-Id: Idca6bdccffe663aea71a0183ca3ea5bb5b59e702 Related: SYS#5103
Diffstat (limited to 'include/osmocom/gprs/gprs_bssgp_rim.h')
-rw-r--r--include/osmocom/gprs/gprs_bssgp_rim.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/gprs/gprs_bssgp_rim.h b/include/osmocom/gprs/gprs_bssgp_rim.h
index 55341de2..418c1bd2 100644
--- a/include/osmocom/gprs/gprs_bssgp_rim.h
+++ b/include/osmocom/gprs/gprs_bssgp_rim.h
@@ -66,6 +66,8 @@ struct bssgp_rim_routing_info {
* address type (discr) of variable length. */
#define BSSGP_RIM_ROUTING_INFO_MAXLEN 14
+char *bssgp_rim_ri_name_buf(char *buf, size_t buf_len, const struct bssgp_rim_routing_info *ri);
+const char *bssgp_rim_ri_name(const struct bssgp_rim_routing_info *ri);
int bssgp_parse_rim_ri(struct bssgp_rim_routing_info *ri, const uint8_t *buf, unsigned int len);
int bssgp_create_rim_ri(uint8_t *buf, const struct bssgp_rim_routing_info *ri);