From 4f42a0accb04936acb6eeb640e5bc09a556eac57 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Wed, 8 Mar 2006 18:07:58 +0000 Subject: all _alpm_XXX_cmp functions are now public --- lib/libalpm/db.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/libalpm/db.c') diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 6b1ceffe..01265917 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -77,4 +77,9 @@ void _alpm_db_free(void *data) free(db); } +int _alpm_db_cmp(const void *db1, const void *db2) +{ + return(strcmp(((pmdb_t *)db1)->treename, ((pmdb_t *)db2)->treename)); +} + /* vim: set ts=2 sw=2 noet: */ -- cgit v1.2.3