actions: list: Add `for_each_action_{const, mutable}()` macros
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 23 Jun 2021 16:33:18 +0000 (12:33 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 1 Jun 2023 14:10:05 +0000 (10:10 -0400)
Accessing all the inner actions of a action list in a loop is a common
access pattern. This commit adds 2 `for_each` macros to iterate over all
elements either using a const or a mutable pointer.

Add a few unit tests for the list action to test these macros.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I9aff0b81e1f782b5d20c3fcb82ee7028da8dd810


No differences found
This page took 0.025625 seconds and 4 git commands to generate.