diff options
Diffstat (limited to 'include/netlink/list.h')
-rw-r--r-- | include/netlink/list.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/netlink/list.h b/include/netlink/list.h index c6876a7..28712ed 100644 --- a/include/netlink/list.h +++ b/include/netlink/list.h @@ -18,6 +18,11 @@ struct nl_list_head struct nl_list_head * prev; }; +static inline void NL_INIT_LIST_HEAD(struct nl_list_head *list) +{ + list->next = list; + list->prev = list; +} static inline void __nl_list_add(struct nl_list_head *obj, struct nl_list_head *prev, |