Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-03-08 18:07:58 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-03-08 18:07:58 +0000
commit4f42a0accb04936acb6eeb640e5bc09a556eac57 (patch)
treebaf6422b479604fa12da47e8243edfcbfdb691a1 /lib/libalpm/package.c
parent230d9d7ae3c3ebc64e922611567841b6fe692f3f (diff)
all _alpm_XXX_cmp functions are now public
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r--lib/libalpm/package.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c
index 8150dd7c..1b006cc4 100644
--- a/lib/libalpm/package.c
+++ b/lib/libalpm/package.c
@@ -148,6 +148,13 @@ void _alpm_pkg_free(void *data)
return;
}
+/* Helper function for comparing packages
+ */
+int _alpm_pkg_cmp(const void *p1, const void *p2)
+{
+ return(strcmp(((pmpkg_t *)p1)->name, ((pmpkg_t *)p2)->name));
+}
+
/* Parses the package description file for the current package
*
* Returns: 0 on success, 1 on error