From 39909f9fb9459ce210cb44a10291a053d4fbb272 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 6 Mar 2025 21:43:10 -0500 Subject: [PATCH] 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 --- doc/developer/lists.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 ----------------------- -- 2.39.5