summaryrefslogtreecommitdiff
path: root/include/uvcgadget/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uvcgadget/list.h')
-rw-r--r--include/uvcgadget/list.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uvcgadget/list.h b/include/uvcgadget/list.h
index 8854c6e..452df30 100644
--- a/include/uvcgadget/list.h
+++ b/include/uvcgadget/list.h
@@ -74,6 +74,9 @@ static inline void list_remove(struct list_entry *entry)
#define list_last_entry(list, type, member) \
list_entry((list)->prev, type, member)
+#define list_next_entry(entry, type, member) \
+ list_entry((entry)->next, type, member)
+
#define list_for_each(entry, list) \
for (entry = (list)->next; entry != (list); entry = entry->next)