Added two convenience functions list_add_item(), list_remove_item().

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2565 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-01-26 23:30:12 +00:00
parent 04d145c94d
commit 7f1f508e13

View File

@ -48,6 +48,8 @@ extern void list_add_link_to_tail(struct list *list, void *_link);
extern void list_remove_link(void *_link); extern void list_remove_link(void *_link);
extern void *list_get_next_item(struct list *list, void *item); extern void *list_get_next_item(struct list *list, void *item);
extern void *list_get_prev_item(struct list *list, void *item); extern void *list_get_prev_item(struct list *list, void *item);
extern void list_add_item(struct list *list, void *item);
extern void list_remove_item(struct list *list, void *item);
extern void *list_remove_head_item(struct list *list); extern void *list_remove_head_item(struct list *list);
extern void *list_remove_tail_item(struct list *list); extern void *list_remove_tail_item(struct list *list);