X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=blobdiff_plain;f=libopkg%2Factive_list.h;h=ecb79a6df8ae7ff77f70bed9c2ec4290ea730faf;hp=262164abac886cdae9f54e1fd051566bd1a137e3;hb=e259cf526cc83edf25faa295f138695274cbfe11;hpb=014e4c306c4765c65abf1f2ce879bebcdd8c7261 diff --git a/libopkg/active_list.h b/libopkg/active_list.h index 262164a..ecb79a6 100644 --- a/libopkg/active_list.h +++ b/libopkg/active_list.h @@ -2,7 +2,7 @@ Tick Chen - Copyright (C) 2008 Openmoko Inc. + Copyright (C) 2008 Openmoko Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -26,10 +26,16 @@ struct active_list { struct active_list *depended; }; + +struct active_list * active_list_head_new(void); +void active_list_head_delete(struct active_list *); void active_list_init(struct active_list *ptr); void active_list_clear(struct active_list *head); void active_list_add_depend(struct active_list *node, struct active_list *depend); void active_list_add(struct active_list *head, struct active_list *node); +struct active_list *active_list_move_node(struct active_list *old_head, struct active_list *new_head, struct active_list *node); + +struct active_list * active_list_sort(struct active_list *head, int (*compare_fcn_t)(const void *, const void *)); struct active_list * active_list_next(struct active_list *head, struct active_list *ptr);