6 Jun
2017
6 Jun
'17
5:42 p.m.
Signed-off-by: Liam Girdwood liam.r.girdwood@linux.intel.com --- src/include/reef/list.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/src/include/reef/list.h b/src/include/reef/list.h index 8d154e1..15bb266 100644 --- a/src/include/reef/list.h +++ b/src/include/reef/list.h @@ -109,6 +109,10 @@ static inline int list_item_is_last(struct list_item *item, #define list_for_item(item, list) \ for (item = (list)->next; item != (list); item = item->next)
+/* list iterator */ +#define list_for_item_prev(item, list) \ + for (item = (list)->prev; item != (list); item = item->prev) + /* list iterator - safe to delete items */ #define list_for_item_safe(item, tmp, list) \ for (item = (list)->next, tmp = item->next;\
--
2.11.0