lynxis lazus has uploaded this change for review.
libvlr: add defines for vlr_is_cs() vlr_is_ps()
Make the code more readable when checking for cs or ps.
Change-Id: I88810f3703813e98be8a37d0445ad641b0cac11d
---
M include/osmocom/vlr/vlr.h
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/05/38405/1
diff --git a/include/osmocom/vlr/vlr.h b/include/osmocom/vlr/vlr.h
index 90147ba..2df8246 100644
--- a/include/osmocom/vlr/vlr.h
+++ b/include/osmocom/vlr/vlr.h
@@ -118,6 +118,9 @@
#define VLR_NAME_LENGTH 160
+#define vlr_is_cs(vlr) (!vlr->cfg.is_ps)
+#define vlr_is_ps(vlr) (vlr->cfg.is_ps)
+
/* The VLR subscriber is the part of the GSM subscriber state in VLR (CS) or
* SGSN (PS), particularly while interacting with the HLR via GSUP */
struct vlr_subscr {
To view, visit change 38405. To unsubscribe, or for help writing mail filters, visit settings.