diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-03-25 22:09:14 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-03-25 22:09:14 +0000 |
commit | 7c847fd7d4fee0fa5e0314f409eb06cfda2c289b (patch) | |
tree | 0e9d02aaf7284066f506fef81a758276ba466b56 /lib/libalpm/list.h | |
parent | 6e63ccfd0fdd19b6d710eb8dc84c85aaf25c3006 (diff) | |
download | pacman-7c847fd7d4fee0fa5e0314f409eb06cfda2c289b.tar.xz |
Backport from pacman 2.9.5
- list_remove, list_check and list_reverse
- sortbydeps(mode)
Diffstat (limited to 'lib/libalpm/list.h')
-rw-r--r-- | lib/libalpm/list.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libalpm/list.h b/lib/libalpm/list.h index c5de46d0..fe0d6738 100644 --- a/lib/libalpm/list.h +++ b/lib/libalpm/list.h @@ -26,6 +26,7 @@ typedef struct __pmlist_t { void *data; struct __pmlist_t *prev; struct __pmlist_t *next; + struct __pmlist_t *last; } pmlist_t; typedef struct __pmlist_t PMList; @@ -39,11 +40,12 @@ PMList *pm_list_new(); void pm_list_free(PMList *list); PMList *pm_list_add(PMList *list, void *data); PMList *pm_list_add_sorted(PMList *list, void *data, pm_fn_cmp fn); -PMList *_alpm_list_remove(PMList *list, void *data, pm_fn_cmp fn, void **ptr); +PMList* _alpm_list_remove(PMList* list, PMList* item); int pm_list_count(PMList *list); int pm_list_is_ptrin(PMList *haystack, void *needle); PMList *pm_list_is_strin(char *needle, PMList *haystack); PMList *pm_list_last(PMList *list); +PMList *_alpm_list_reverse(PMList *list); #endif /* _ALPM_LIST_H */ |