From: Donald Sharp Date: Fri, 7 Mar 2025 02:43:10 +0000 (-0500) Subject: doc: Add typesafe conversion examples X-Git-Tag: docker/10.3.0~3^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=cef035befe6fabd09039d63ded5e81f41d58cc3a;p=matthieu%2Ffrr.git doc: Add typesafe conversion examples Try to give some good examples of various lists being converted over to the typesafe way of doing things. Signed-off-by: Donald Sharp (cherry picked from commit 39909f9fb9459ce210cb44a10291a053d4fbb272) --- diff --git a/doc/developer/lists.rst b/doc/developer/lists.rst index ccac10aab9..b761cc3671 100644 --- a/doc/developer/lists.rst +++ b/doc/developer/lists.rst @@ -187,6 +187,17 @@ To switch between compatible data structures, only these two lines need to be changes. To switch to a data structure with a different API, some source changes are necessary. +As a example to the developer here are some example commits that convert +over to usage of the typesafe data structures: + ++------------------------------------------------------+------------------------------------+ +| Commit Message | SHA | ++======================================================+====================================+ +| bgpd: Convert the bgp_advertise_attr->adv to a fifo | b2e0c12d723a6464f67491ceb9 | ++------------------------------------------------------+------------------------------------+ +| zebra: convert LSP nhlfe lists to use typesafe lists | ee70f629792b90f92ea7e6bece | ++------------------------------------------------------+------------------------------------+ + Common iteration macros -----------------------