libdc/examples
Linus Torvalds af2249a7c5 Add generic field cache and string field infrastructure
This adds the infrastructure for the "field cache", which is just
various helpers for the dc_get_field() interface.

This includes the 'dc_field_cache_t' structure that a libdivecomputer
backend can just add to its parser data structure, and a few macros to
make it very easy to initialize the fields and then return them in the
'get_field()' callback.

And part of it is the infrastructure support for the 'dc_field_string_t'
type, which adds the support for string fields.  That will be used to
return various string-formatted data from the dive computer, like deco
models, serial numbers, etc.

And no, a serial number is most definitely not a "number". It's a string.

Right now there are no users of this yet, that comes next.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-05-07 15:05:30 -07:00
..
2016-01-04 19:50:51 +01:00
2016-01-04 19:50:51 +01:00
2016-01-04 19:50:51 +01:00
2018-04-03 21:44:08 +02:00
2018-04-03 21:44:08 +02:00
2018-04-03 21:44:08 +02:00
2016-02-26 07:55:40 +01:00
2014-03-19 09:16:07 +01:00