]> git.proxmox.com Git - mirror_frr.git/commit
lib: add const iteration & find to typesafe lists
authorDavid Lamparter <equinox@diac24.net>
Mon, 4 May 2020 19:36:03 +0000 (21:36 +0200)
committerDavid Lamparter <equinox@diac24.net>
Mon, 4 May 2020 20:13:28 +0000 (22:13 +0200)
commitdaf3441d2bc7855a10886ec85ba0999be9e44e59
tree36e5b0ea841d9a44df549d6b4190581413f44828
parent15e9c561b2a10e90b1370e7a8d43d02ffde9e61a
lib: add const iteration & find to typesafe lists

Based on work originally by Mark Stapp <mjs@voltanet.io>.

Make it possible to iterate the typesafe lists in a const
context, as well as find items from them.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
[above signoff was for the original version before modification]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
doc/developer/lists.rst
lib/typerb.c
lib/typerb.h
lib/typesafe.c
lib/typesafe.h
tests/lib/test_typelist.h