lynxis lazus has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-msc/+/38405?usp=email )

Change subject: vlr: add functions for vlr_is_cs() vlr_is_ps()
......................................................................

vlr: add functions 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(-)

Approvals:
  laforge: Looks good to me, but someone else must approve
  Jenkins Builder: Verified
  pespin: Looks good to me, approved




diff --git a/include/osmocom/vlr/vlr.h b/include/osmocom/vlr/vlr.h
index 5d01397..3fdb6d9 100644
--- a/include/osmocom/vlr/vlr.h
+++ b/include/osmocom/vlr/vlr.h
@@ -328,6 +328,9 @@
 int vlr_start(struct vlr_instance *vlr, struct gsup_client_mux *gcm);
 int vlr_gsup_rx(struct gsup_client_mux *gcm, void *data, const struct 
osmo_gsup_message *gsup_msg);

+static inline bool vlr_is_cs(struct vlr_instance *vlr) { return 
!vlr->cfg.is_ps; };
+static inline bool vlr_is_ps(struct vlr_instance *vlr) { return 
vlr->cfg.is_ps; };
+
 /* internal use only */

 void sub_pres_vlr_fsm_start(struct osmo_fsm_inst **fsm,

--
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: merged
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I88810f3703813e98be8a37d0445ad641b0cac11d
Gerrit-Change-Number: 38405
Gerrit-PatchSet: 4
Gerrit-Owner: lynxis lazus <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: lynxis lazus <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to