<p style="white-space: pre-wrap; word-wrap: break-word;">IMHO too many things going on in this commit which are not really related and which could have been easily splitted and discussed separately, like the use of ipa_name struct, te _req*, and other fixes in the way simply pulled in in the same patch.</p><p><a href="https://gerrit.osmocom.org/c/osmo-hlr/+/16205">View Change</a></p><p>7 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-hlr/+/16205/23/include/osmocom/gsupclient/ipa_name.h">File include/osmocom/gsupclient/ipa_name.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-hlr/+/16205/23/include/osmocom/gsupclient/ipa_name.h@29">Patch Set #23, Line 29:</a> <code style="font-family:monospace,monospace">struct osmo_ipa_name {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I'm not really liking this kind of adhoc structures to keep a string specially since they are presented in a public header of shared library, meaning we'll need to keep with it later on...</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-hlr/+/16205/23/include/osmocom/hlr/gsup_router.h">File include/osmocom/hlr/gsup_router.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-hlr/+/16205/23/include/osmocom/hlr/gsup_router.h@31">Patch Set #23, Line 31:</a> <code style="font-family:monospace,monospace">int osmo_gsup_send_to_ipa_name(struct osmo_gsup_server *gs, const struct osmo_ipa_name *ipa_name, struct msgb *msg);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Update TODO_RELEASE explaining there's new API.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-hlr/+/16205/23/src/db.c">File src/db.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-hlr/+/16205/23/src/db.c@25">Patch Set #23, Line 25:</a> <code style="font-family:monospace,monospace">#include <errno.h></code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Non related at all, must go into a separate patch (if needed at all).</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-hlr/+/16205/23/src/gsup_router.c">File src/gsup_router.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-hlr/+/16205/23/src/gsup_router.c@99">Patch Set #23, Line 99:</a> <code style="font-family:monospace,monospace">int gsup_route_add_ipa_name(struct osmo_gsup_conn *conn, const struct osmo_ipa_name *ipa_name)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">and with this type of structs we end up doing like this function, simply adding extra layers.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-hlr/+/16205/23/src/gsupclient/ipa_name.c">File src/gsupclient/ipa_name.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-hlr/+/16205/23/src/gsupclient/ipa_name.c@90">Patch Set #23, Line 90:</a> <code style="font-family:monospace,monospace">   return osmo_escape_str_c(OTC_SELECT, (char*)ipa_name->val, len);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">So you are forcing the app using the library to enable the otc_select in this case? SHouldn't the function have some kind of suffix to mark it as so (_c) and explain that in the API doc?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-hlr/+/16205/23/src/hlr.c">File src/hlr.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-hlr/+/16205/23/src/hlr.c@426">Patch Set #23, Line 426:</a> <code style="font-family:monospace,monospace">      osmo_gsup_message_type_name((gsup)->message_type), \</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Fixing () in the define could be a separate commit.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-hlr/+/16205/23/src/hlr.c@777">Patch Set #23, Line 777:</a> <code style="font-family:monospace,monospace">               osmo_select_main_ctx(0);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Is this line change only needed to print stuff more easily?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-hlr/+/16205">change 16205</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-hlr/+/16205"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hlr </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I3a8dff3d4a1cbe10d6ab08257a0138d6b2a082d9 </div>
<div style="display:none"> Gerrit-Change-Number: 16205 </div>
<div style="display:none"> Gerrit-PatchSet: 23 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@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: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 08 Jan 2020 13:14:29 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>