<p>Vadim Yanitskiy <strong>uploaded patch set #3</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/10034">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Introduce info / features negotiation helper functions<br><br>In some projects, such as OsmocomBB and SIMTrace, where the host<br>software needs to communicate with different HW / SW back-ends<br>(e.g. OsmocomBB/mobile and Calypso firmware), it is important<br>to have a possibility to negotiate some information between<br>the both sides, for example, a list of supported features,<br>or some meta-information about a hardware back-end.<br><br>This change introduces the new API exactly for that, and can<br>be used in order to avoid code duplication, and implementing<br>the wheel again and again.<br><br>At the moment, there are two kinds of information that can be<br>negotiated:<br><br>  - TLV-based text chunks,<br>  - feature flags.<br><br>First kind of info can be used to describe some meta-information,<br>for example, HW board name, FW or SW version. Also, it can be<br>used to describe some non-binary properties, for example,<br>a preferred TCH frame format.<br><br>The feature flags can be used to indicate that one or more<br>features from a set shared between the both sides is/are<br>supported. If particular flag is preset in the encoded<br>message, the associated feature is supported, otherwise<br>it is not supported, or not implemented.<br><br>Basic usage examples can be found in implementation<br>of the unit test: tests/nego/nego_test.c.<br><br>Change-Id: I6fd5b6be6755d4aa735a510e95459180225389ba<br>Related: OS#1460, OS#1461<br>---<br>M include/Makefile.am<br>A include/osmocom/core/negotiation.h<br>M src/Makefile.am<br>A src/negotiation.c<br>M tests/Makefile.am<br>A tests/nego/nego_test.c<br>A tests/nego/nego_test.ok<br>M tests/testsuite.at<br>8 files changed, 429 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/34/10034/3</pre><p>To view, visit <a href="https://gerrit.osmocom.org/10034">change 10034</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/10034"/><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: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: I6fd5b6be6755d4aa735a510e95459180225389ba </div>
<div style="display:none"> Gerrit-Change-Number: 10034 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: Kévin Redon <kredon@sysmocom.de> </div>