Commit 6092e607 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

list: add static initializer macro

parent 9beda09d
......@@ -45,6 +45,11 @@ struct vlc_list
struct vlc_list *next;
};
/**
* Static initializer for a list head.
*/
#define VLC_LIST_INITIALIZER(h) { h, h }
/**
* Initializes an empty list head.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment