index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-04-26 21:08:34 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-04-28 02:59:58 -0400 |
commit | a3491224df3209563b68cc45b9b2d8ab747d208a (patch) | |
tree | 46f0b25b5c457479cc937e10957562ce751cd9fd /lib/libalpm/package.h | |
parent | 0984dab1f2b7beae455518b06aa5675890e01d9c (diff) |
-rw-r--r-- | lib/libalpm/package.h | 5 |
diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h index 8055c177..212b7a69 100644 --- a/lib/libalpm/package.h +++ b/lib/libalpm/package.h @@ -95,12 +95,9 @@ struct __pmpkg_t { pmdbinfrq_t infolevel; }; -#define FREEPKG(p) do { if(p){_alpm_pkg_free(p); p = NULL;}} 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(void *data); +void _alpm_pkg_free(pmpkg_t *pkg); int _alpm_pkg_cmp(const void *p1, const void *p2); int alpm_pkg_compare_versions(pmpkg_t *local_pkg, pmpkg_t *pkg); pmpkg_t *_alpm_pkg_load(const char *pkgfile); |