lynxis lazus has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-msc/+/38405?usp=email )
Change subject: libvlr: add defines for vlr_is_cs() vlr_is_ps()
......................................................................
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
https://gerrit.osmocom.org/c/osmo-msc/+/38405?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I88810f3703813e98be8a37d0445ad641b0cac11d
Gerrit-Change-Number: 38405
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>