Change in libosmocore[master]: Introduce info / features negotiation helper functions

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Wed Jul 18 02:24:02 UTC 2018


Hello Kévin Redon, Harald Welte, Jenkins Builder, 

I'd like you to reexamine a change. Please visit

    https://gerrit.osmocom.org/10034

to look at the new patch set (#3).

Change subject: Introduce info / features negotiation helper functions
......................................................................

Introduce info / features negotiation helper functions

In some projects, such as OsmocomBB and SIMTrace, where the host
software needs to communicate with different HW / SW back-ends
(e.g. OsmocomBB/mobile and Calypso firmware), it is important
to have a possibility to negotiate some information between
the both sides, for example, a list of supported features,
or some meta-information about a hardware back-end.

This change introduces the new API exactly for that, and can
be used in order to avoid code duplication, and implementing
the wheel again and again.

At the moment, there are two kinds of information that can be
negotiated:

  - TLV-based text chunks,
  - feature flags.

First kind of info can be used to describe some meta-information,
for example, HW board name, FW or SW version. Also, it can be
used to describe some non-binary properties, for example,
a preferred TCH frame format.

The feature flags can be used to indicate that one or more
features from a set shared between the both sides is/are
supported. If particular flag is preset in the encoded
message, the associated feature is supported, otherwise
it is not supported, or not implemented.

Basic usage examples can be found in implementation
of the unit test: tests/nego/nego_test.c.

Change-Id: I6fd5b6be6755d4aa735a510e95459180225389ba
Related: OS#1460, OS#1461
---
M include/Makefile.am
A include/osmocom/core/negotiation.h
M src/Makefile.am
A src/negotiation.c
M tests/Makefile.am
A tests/nego/nego_test.c
A tests/nego/nego_test.ok
M tests/testsuite.at
8 files changed, 429 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/34/10034/3
-- 
To view, visit https://gerrit.osmocom.org/10034
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I6fd5b6be6755d4aa735a510e95459180225389ba
Gerrit-Change-Number: 10034
Gerrit-PatchSet: 3
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Kévin Redon <kredon at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180718/c5946dc0/attachment.htm>


More information about the gerrit-log mailing list