<p style="white-space: pre-wrap; word-wrap: break-word;">only some cosmetics, rest looks good! thanks for answering everything in detail, makes sense.</p><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25120">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-mgw/+/25120/5/src/libosmo-mgcp-client/mgcp_client_pool.c">File src/libosmo-mgcp-client/mgcp_client_pool.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-mgw/+/25120/5/src/libosmo-mgcp-client/mgcp_client_pool.c@159">Patch Set #5, Line 159:</a> <code style="font-family:monospace,monospace"> * not belong to a pool at all, the function call will have no effect. */</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I think that is done automatically by doxygen. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">What I meant is, I'd move this comment above "void mgcp_client_pool_put(...". like here: https://git.osmocom.org/libosmocore/tree/src/timer.c?id=7af860fb78d6a13258d5887e7bb71276509229cb#n114</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25120/8/src/libosmo-mgcp-client/mgcp_client_pool.c">File src/libosmo-mgcp-client/mgcp_client_pool.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-mgw/+/25120/8/src/libosmo-mgcp-client/mgcp_client_pool.c@133">Patch Set #8, Line 133:</a> <code style="font-family:monospace,monospace"> * by the application code. */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">(Move above struct mgcp_client *mgcp_client_pool_get, see other comment?)</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25120/5/src/libosmo-mgcp-client/mgcp_client_vty.c">File src/libosmo-mgcp-client/mgcp_client_vty.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-mgw/+/25120/5/src/libosmo-mgcp-client/mgcp_client_vty.c@50">Patch Set #5, Line 50:</a> <code style="font-family:monospace,monospace"> \</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I have to use this macro in each (common) VTY command to get the pointer to the conf. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">but why not a function instead of a macro?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25120/5/src/libosmo-mgcp-client/mgcp_client_vty.c@329">Patch Set #5, Line 329:</a> <code style="font-family:monospace,monospace"> </code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">The extra space is on purpose. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">sorry I got confused about the snprintf arguments. global_mgcp_client_indent_pool gets read, not written to. FWIW I think it is more readable in the new version without the global variable.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25120/5/src/libosmo-mgcp-client/mgcp_client_vty.c@531">Patch Set #5, Line 531:</a> <code style="font-family:monospace,monospace">indent</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I would normally expect the indent string to be a constant, but who knows where an API user is getti […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">(nvm the strdup comment, I thought global_mgcp_client_indent_pool would get written to... but now I see that it was only read.)</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25120/8/src/libosmo-mgcp-client/mgcp_client_vty.c">File src/libosmo-mgcp-client/mgcp_client_vty.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-mgw/+/25120/8/src/libosmo-mgcp-client/mgcp_client_vty.c@38">Patch Set #8, Line 38:</a> <code style="font-family:monospace,monospace">connands</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">commands</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25120">change 25120</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-mgw/+/25120"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: osmo-mgw </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Icaaba0e470e916eefddfee750b83f5f65291a6b0 </div>
<div style="display:none"> Gerrit-Change-Number: 25120 </div>
<div style="display:none"> Gerrit-PatchSet: 8 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@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-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 05 Aug 2021 12:21:41 +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: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Comment-In-Reply-To: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>