summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2025-03-06 21:43:10 -0500
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2025-03-09 03:50:00 +0000
commitcef035befe6fabd09039d63ded5e81f41d58cc3a (patch)
tree4312996dc1cc9369394d577d49670aebd3a6b72e
parenta40c800c2e1ade525c7a3fa5f67dedb4c853234f (diff)
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 <sharpd@nvidia.com> (cherry picked from commit 39909f9fb9459ce210cb44a10291a053d4fbb272)
-rw-r--r--doc/developer/lists.rst11
1 files changed, 11 insertions, 0 deletions
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
-----------------------