<p style="white-space: pre-wrap; word-wrap: break-word;">I am not against this channge, I see the point of standariging options for APIs, but I'm not really sure about the benefit of introducing _c functions for APIs which already have a _buf one (meaning one can already use them in multithreaded env).</p><p style="white-space: pre-wrap; word-wrap: break-word;">I don't like adding similar APIs for the sake of convenience, because on the other hand it grows libosmocore size, maintainership and complexity to find APIs as a user.</p><p style="white-space: pre-wrap; word-wrap: break-word;">IMHO we should deprecate static buffers and keep only _buf ones, and drop _c or talloc functions as much as possible for simple return types like strings. Of course we want to have/keep _c for APIs returning complex stuff like msgb.</p><p>Patch set 9:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #d4ffd4;">Code-Review +1</span></p><p><a href="https://gerrit.osmocom.org/13311">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/13311">change 13311</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/13311"/><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: I8481c19b68ff67cfa22abb93c405ebcfcb0ab19b </div>
<div style="display:none"> Gerrit-Change-Number: 13311 </div>
<div style="display:none"> Gerrit-PatchSet: 9 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 08 Apr 2019 09:22:01 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>