<p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953">View Change</a></p><p>6 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/include/osmo-bts/bts_model.h">File include/osmo-bts/bts_model.h:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/include/osmo-bts/bts_model.h@34">Patch Set #2, Line 34:</a> <code style="font-family:monospace,monospace">/* Implementation should call bts_model_trx_close_cb when done */</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">(possibly better place the comment in the . […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">There's no global C file, precisely because each backend should implement these functions, and this is the reference header people look at when adding a new backend.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/include/osmo-bts/bts_model.h@71">Patch Set #2, Line 71:</a> <code style="font-family:monospace,monospace">void bts_model_trx_close_cb(struct gsm_bts_trx *trx, int rc);</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">(maybe "closed_cb" with d)</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I'm keeping the function name initiating it and adding_cb to it.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/src/osmo-bts-omldummy/bts_model.c">File src/osmo-bts-omldummy/bts_model.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/src/osmo-bts-omldummy/bts_model.c@53">Patch Set #2, Line 53:</a> <code style="font-family:monospace,monospace">void bts_model_trx_close(struct gsm_bts_trx *trx)</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">separate fix?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Not really, I'm moving the return code to be returned in the callback function.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/src/osmo-bts-omldummy/bts_model.c@55">Patch Set #2, Line 55:</a> <code style="font-family:monospace,monospace">        LOGP(DL1C, LOGL_NOTICE, "Unimplemented %s\n", __func__);</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">i guess it's implemented now? :)</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Not really, I'm simply returning the callback method as requested by the bts_model, but specific stuff for this backend is not really yet implemented. I'm simply keeping old behavior here.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/src/osmo-bts-trx/l1_if.c">File src/osmo-bts-trx/l1_if.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/src/osmo-bts-trx/l1_if.c@444">Patch Set #2, Line 444:</a> <code style="font-family:monospace,monospace">      } else if (!pinst->phy_link->u.osmotrx.poweronoff_sent) {</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">this is immediately responding with close_cb() in case it was never powered on? (explain in a commen […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Yes. I think it's clear since it's already explained in the definition of the function in bts_model.h</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/src/osmo-bts-virtual/bts_model.c">File src/osmo-bts-virtual/bts_model.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/src/osmo-bts-virtual/bts_model.c@55">Patch Set #2, Line 55:</a> <code style="font-family:monospace,monospace">    LOGP(DL1C, LOGL_NOTICE, "Unimplemented %s\n", __func__);</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">(implemented now)</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">No really, already explained.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953">change 18953</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-bts/+/18953"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I7d76b600fc06e1114b35bf0c2d08eff5bbd1b69a </div>
<div style="display:none"> Gerrit-Change-Number: 18953 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 23 Jun 2020 10:17:20 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>