X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=ll.h;h=464f99b0553eaf23c8f112af4ffd20feb2fb084e;hb=3561aed8483fe3076c7689f93fbc94ca63de77b3;hp=15bc64d39c80413b1e54d98001ef75db46e57822;hpb=e01d2e2d07392eb03e4268fdc4f0f1339a9a9461;p=onak.git diff --git a/ll.h b/ll.h index 15bc64d..464f99b 100644 --- a/ll.h +++ b/ll.h @@ -49,6 +49,15 @@ struct ll { */ struct ll *lladd(struct ll *curll, void *object); +/** + * lladdend - Add an item to the end of a linked list. + * @curll: The list to add to. Can be NULL to create a new list. + * @object: The object to add. + * + * Returns a pointer to the head of the new list. + */ +struct ll *lladdend(struct ll *curll, void *object); + /** * lldel - Remove an item from a linked list. * @curll: The list to remove the item from. @@ -91,7 +100,6 @@ unsigned long llsize(struct ll *curll); * objectfree then it's called for each element to free them, if it's NULL * just the list is freed. */ -struct ll *llfree(struct ll *curll, - void (*objectfree) (void *object)); +void llfree(struct ll *curll, void (*objectfree) (void *object)); #endif /* __LL_H__ */