1 #include <ccan/tlist/tlist.h>
3 TLIST_TYPE(children, struct child);
12 struct list_node list;
15 int main(int argc, char *argv[])
17 struct tlist_children children;
18 struct child child = { "child" };
20 #if !HAVE_FLEXIBLE_ARRAY_MEMBER
21 #error Need flexible array members to check type
28 tlist_init(&children);
29 tlist_add(&children, &child, list);
30 p = tlist_next(&children, &child, list);