X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftlist%2F_info;h=e18e2efb23b654924d0ec726765eb35340118cfa;hp=7586fdfc7b4d7c642525edb2c2dc04f3418c8883;hb=919b97d6e573eb794d7819f1af8da29023d6b193;hpb=c89f34afdc6c2a98c75130470ea0b7f531a3cfe0;ds=sidebyside diff --git a/ccan/tlist/_info b/ccan/tlist/_info index 7586fdfc..e18e2efb 100644 --- a/ccan/tlist/_info +++ b/ccan/tlist/_info @@ -9,17 +9,17 @@ * this extends it so you can create list head types which only accomodate * a specific entry type. * - * You use TLIST_TYPE() to define the specific struct tlist_, then use - * the tlist_* variants of the various list_* operations. - * * Example: * #include * #include * #include * #include * - * // Defines struct tlist_children - * TLIST_TYPE(children, struct child); + * // We could use TLIST_TYPE(children, struct child) to define this. + * struct tlist_children { + * struct list_head raw; + * TCON(struct child *canary); + * }; * struct parent { * const char *name; * struct tlist_children children; @@ -66,6 +66,7 @@ int main(int argc, char *argv[]) if (strcmp(argv[1], "depends") == 0) { printf("ccan/list\n"); + printf("ccan/tcon\n"); return 0; }