<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-iuh/+/15472">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">iu_client: allow to control the notifications<br><br>The iu_client is informing the library user about global event.<br>In prepration to the tx_iu_release_free() call allow to<br>disable upstream notificatiosn<br><br>Change-Id: Ic93ef6fd54c995405e9c37a5e0c53f81a89850b7<br>---<br>M include/osmocom/ranap/iu_client.h<br>M src/iu_client.c<br>2 files changed, 5 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/72/15472/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/ranap/iu_client.h b/include/osmocom/ranap/iu_client.h</span><br><span>index 0cb84da..b388529 100644</span><br><span>--- a/include/osmocom/ranap/iu_client.h</span><br><span>+++ b/include/osmocom/ranap/iu_client.h</span><br><span>@@ -30,6 +30,7 @@</span><br><span>        int integrity_active;</span><br><span>        struct gprs_ra_id ra_id;</span><br><span>     enum ranap_nsap_addr_enc rab_assign_addr_enc;</span><br><span style="color: hsl(120, 100%, 40%);">+ bool notification; /* send notification to the upstream user */</span><br><span> };</span><br><span> </span><br><span> enum ranap_iu_event_type {</span><br><span>diff --git a/src/iu_client.c b/src/iu_client.c</span><br><span>index ec5290f..38c8a1d 100644</span><br><span>--- a/src/iu_client.c</span><br><span>+++ b/src/iu_client.c</span><br><span>@@ -116,6 +116,9 @@</span><br><span>       if (!global_iu_event_cb)</span><br><span>             return 0;</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ if (!ue_ctx->notification)</span><br><span style="color: hsl(120, 100%, 40%);">+         return 0;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  return global_iu_event_cb(ue_ctx, type, data);</span><br><span> }</span><br><span> </span><br><span>@@ -125,6 +128,7 @@</span><br><span> </span><br><span>    ctx->rnc = rnc;</span><br><span>   ctx->conn_id = conn_id;</span><br><span style="color: hsl(120, 100%, 40%);">+    ctx->notification = true;</span><br><span>         llist_add(&ctx->list, &ue_conn_ctx_list);</span><br><span> </span><br><span>     return ctx;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-iuh/+/15472">change 15472</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-iuh/+/15472"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-iuh </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ic93ef6fd54c995405e9c37a5e0c53f81a89850b7 </div>
<div style="display:none"> Gerrit-Change-Number: 15472 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>