<p style="white-space: pre-wrap; word-wrap: break-word;">Hi Harald,</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">If you're introducing a new API function, I would consider it "most<br>clean" if one were to pass a "struct release_cause { location;<br>cause; }" kind of struct as a "const *" pointer to a function.  If<br>that pointer is NULL, then the optional element is not encoded.  If<br>it's non-null the optional element is encoded as per the elements<br>in that struct.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">hmm, yes. But since you're suggesting to introduce a new struct, I think we need to introduce the new API for Cause IE. The current gsm48_encode_cause() is mixed up with gsm_mncc_cause struct, and I really don't like this...</p><p><a href="https://gerrit.osmocom.org/12839">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/12839">change 12839</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/12839"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ie3ac85fcef90a5e532334ba3482804d5305c88d7 </div>
<div style="display:none"> Gerrit-Change-Number: 12839 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-CC: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 06 Feb 2019 08:23:59 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-HasLabels: No </div>