summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/package.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-04-27 03:08:34 +0200
committerDan McGee <dan@archlinux.org>2007-04-28 08:59:58 +0200
commita3491224df3209563b68cc45b9b2d8ab747d208a (patch)
tree46f0b25b5c457479cc937e10957562ce751cd9fd /lib/libalpm/package.h
parent0984dab1f2b7beae455518b06aa5675890e01d9c (diff)
downloadpacman-a3491224df3209563b68cc45b9b2d8ab747d208a.tar.gz
pacman-a3491224df3209563b68cc45b9b2d8ab747d208a.tar.xz
Remove FREEPKG macro and correctly type _alpm_pkg_free
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/package.h')
-rw-r--r--lib/libalpm/package.h5
1 files changed, 1 insertions, 4 deletions
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);