Change in ...osmo-ttcn3-hacks[master]: lib/IPA_Emulation: Build IPA_CTRL conditionally based on define

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Tue Jun 11 14:02:44 UTC 2019


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/14418


Change subject: lib/IPA_Emulation: Build IPA_CTRL conditionally based on define
......................................................................

lib/IPA_Emulation: Build IPA_CTRL conditionally based on define

Change-Id: I4d1eca6b0008a395b7f7449e6ea3f9b6d41133c7
---
M library/IPA_Emulation.ttcnpp
1 file changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/18/14418/1

diff --git a/library/IPA_Emulation.ttcnpp b/library/IPA_Emulation.ttcnpp
index 3ec6922..2305b7b 100644
--- a/library/IPA_Emulation.ttcnpp
+++ b/library/IPA_Emulation.ttcnpp
@@ -186,8 +186,10 @@
 	/* up-facing port for OML */
 	port IPA_OML_PT IPA_OML_PORT;
 #endif
+#ifdef IPA_EMULATION_CTRL
 	/* up-facing port for CTRL */
 	port IPA_CTRL_PT IPA_CTRL_PORT;
+#endif
 #ifdef IPA_EMULATION_GSUP
 	/* up-facing port for GSUP */
 	port IPA_GSUP_PT IPA_GSUP_PORT;
@@ -300,9 +302,11 @@
 		IPA_OML_PORT.send(evt);
 	}
 #endif
+#ifdef IPA_EMULATION_CTRL
 	if (IPA_CTRL_PORT.checkstate("Connected")) {
 		IPA_CTRL_PORT.send(evt);
 	}
+#endif
 #ifdef IPA_EMULATION_GSUP
 	if (IPA_GSUP_PORT.checkstate("Connected")) {
 		IPA_GSUP_PORT.send(evt);
@@ -497,10 +501,12 @@
 	ScanEvents();
 }
 
+#ifdef IPA_EMULATION_CTRL
 private function f_ctrl_to_user(octetstring msg) runs on IPA_Emulation_CT {
 	var charstring msg_ch := oct2char(msg);
 	IPA_CTRL_PORT.send(dec_CtrlMessage(msg_ch));
 }
+#endif
 
 #ifdef IPA_EMULATION_GSUP
 private function f_gsup_to_user(octetstring msg) runs on IPA_Emulation_CT {
@@ -703,11 +709,13 @@
 		}
 #endif
 
+#ifdef IPA_EMULATION_CTRL
 		[] IPA_CTRL_PORT.receive(CtrlMessage:?) -> value ctrl_msg {
 			payload := char2oct(enc_CtrlMessage(ctrl_msg));
 			ipa_ud := valueof(t_ASP_IPA_UD(IPAC_PROTO_OSMO, payload, IPAC_PROTO_EXT_CTRL));
 			IPA_PORT.send(f_from_asp(g_ipa_conn_id, ipa_ud));
 		}
+#endif
 
 #ifdef IPA_EMULATION_GSUP
 		[] IPA_GSUP_PORT.receive(GSUP_PDU:?) -> value gsup_msg {

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/14418
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I4d1eca6b0008a395b7f7449e6ea3f9b6d41133c7
Gerrit-Change-Number: 14418
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190611/13e81fd6/attachment.htm>


More information about the gerrit-log mailing list