aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2021-02-03 22:11:46 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2021-02-04 15:17:41 +0100
commitd11a5d5b9a636ce5e16d688c5303eeac8be45e8c (patch)
treeddc18a63ea58bf854983f07ff6f9c22ca0081a1c /include/osmocom
parent700822b305850686528b0e83cb652b5a52b8600a (diff)
gsm48: add compare function for struct gprs_ra_id
Comparing struct gprs_ra_id using memcmp can be error prone, so lets add a compare function to compare two struct gprs_ra_id values reliably. Change-Id: I4d7558c04d9d01761516526086be5104bb2eeada Related: SYS#5103
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/gsm/gsm48.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsm48.h b/include/osmocom/gsm/gsm48.h
index f772f4a1..fdaa5724 100644
--- a/include/osmocom/gsm/gsm48.h
+++ b/include/osmocom/gsm/gsm48.h
@@ -104,6 +104,7 @@ int osmo_mobile_identity_encode_msgb(struct msgb *msg, const struct osmo_mobile_
void gsm48_parse_ra(struct gprs_ra_id *raid, const uint8_t *buf);
void gsm48_encode_ra(struct gsm48_ra_id *out, const struct gprs_ra_id *raid);
int gsm48_construct_ra(uint8_t *buf, const struct gprs_ra_id *raid) OSMO_DEPRECATED("Use gsm48_encode_ra() instead");
+bool gsm48_ra_equal(const struct gprs_ra_id *raid1, const struct gprs_ra_id *raid2);
int gsm48_number_of_paging_subchannels(struct gsm48_control_channel_descr *chan_desc);