index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aurelien Foret <aurelien@archlinux.org> | 2006-03-08 18:07:58 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-03-08 18:07:58 +0000 |
commit | 4f42a0accb04936acb6eeb640e5bc09a556eac57 (patch) | |
tree | baf6422b479604fa12da47e8243edfcbfdb691a1 /lib/libalpm/package.c | |
parent | 230d9d7ae3c3ebc64e922611567841b6fe692f3f (diff) |
-rw-r--r-- | lib/libalpm/package.c | 7 |
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 |