index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/package.h | 13 |
diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h index c22cfe59..2fe60dd7 100644 --- a/lib/libalpm/package.h +++ b/lib/libalpm/package.h @@ -75,20 +75,11 @@ do { \ } \ } while(0) -#define FREELISTPKGS(p) \ -do { \ - if(p) { \ - PMList *i; \ - for(i = p; i; i = i->next) { \ - FREEPKG(i->data); \ - }\ - FREELIST(p);\ - } \ -} while(0) +#define FREELISTPKGS(p) _FREELIST(p, _alpm_pkg_free) pmpkg_t* _alpm_pkg_new(const char *name, const char *version); pmpkg_t *_alpm_pkg_dup(pmpkg_t *pkg); -void _alpm_pkg_free(pmpkg_t *pkg); +void _alpm_pkg_free(void *data); pmpkg_t *_alpm_pkg_load(char *pkgfile); pmpkg_t *_alpm_pkg_isin(char *needle, PMList *haystack); int _alpm_pkg_splitname(char *target, char *name, char *version); |