summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/list.h
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-05 22:49:42 +0100
committerAurelien Foret <aurelien@archlinux.org>2006-01-05 22:49:42 +0100
commit5fc2e009dccc2075ee87210cd1cb3fda57fbc5d6 (patch)
treee8476e7c02466147e37872b7a109fb7ae7c39c1e /lib/libalpm/list.h
parentef8bbd2ac496604df949e0bce978a3c53dbaede3 (diff)
downloadpacman-5fc2e009dccc2075ee87210cd1cb3fda57fbc5d6.tar.gz
pacman-5fc2e009dccc2075ee87210cd1cb3fda57fbc5d6.tar.xz
- started to rename list_XXX calls to _alpm_list_XXX
- fixed 2 compilation warnings
Diffstat (limited to 'lib/libalpm/list.h')
-rw-r--r--lib/libalpm/list.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libalpm/list.h b/lib/libalpm/list.h
index d1cdb385..706e61b8 100644
--- a/lib/libalpm/list.h
+++ b/lib/libalpm/list.h
@@ -31,7 +31,7 @@ typedef struct __pmlist_t {
typedef struct __pmlist_t PMList;
-#define FREELIST(p) do { if(p) { pm_list_free(p); p = NULL; } } while(0)
+#define FREELIST(p) do { if(p) { _alpm_list_free(p); p = NULL; } } while(0)
#define FREELISTPTR(p) do { \
PMList *i; \
for(i = p; i; i = i->next) { \
@@ -43,15 +43,15 @@ typedef struct __pmlist_t PMList;
/* Sort comparison callback function declaration */
typedef int (*pm_fn_cmp) (const void *, const void *);
-PMList *pm_list_new(void);
-void pm_list_free(PMList *list);
+PMList *_alpm_list_new(void);
+void _alpm_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 *haystack, void *needle, pm_fn_cmp fn, void **data);
-int pm_list_count(PMList *list);
+int _alpm_list_count(PMList *list);
int pm_list_is_in(void *needle, PMList *haystack);
PMList *pm_list_is_strin(char *needle, PMList *haystack);
-PMList *pm_list_last(PMList *list);
+PMList *_alpm_list_last(PMList *list);
PMList *_alpm_list_remove_dupes(PMList *list);
PMList *_alpm_list_reverse(PMList *list);
PMList *_alpm_list_strdup(PMList *list);