summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/alpm.h
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2007-07-09 17:02:29 +0200
committerDan McGee <dan@archlinux.org>2007-08-16 17:08:17 +0200
commitee977019e39fe33a508a60abe4a3ad7eff819b74 (patch)
tree31d12be64448f6fab2e015f6fcba5055d1321cf4 /lib/libalpm/alpm.h
parent47cada81a0a8fdd4c77645233ed8406b829b552c (diff)
downloadpacman-ee977019e39fe33a508a60abe4a3ad7eff819b74.tar.gz
pacman-ee977019e39fe33a508a60abe4a3ad7eff819b74.tar.xz
libalpm/db.c : add alpm_db_unregister_all.
This basically moves the code from alpm_release, which was mostly about unregistering all databases, to a safer alpm_db_unregister_all. This allows to avoid modifying the dbs_sync list while iterating over it, and and also prevent alpm_release from looping infinitely when a database can't be unregistered. Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r--lib/libalpm/alpm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index 9e641f3e..98028de8 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -145,6 +145,7 @@ alpm_list_t *alpm_option_get_syncdbs();
pmdb_t *alpm_db_register(const char *treename);
int alpm_db_unregister(pmdb_t *db);
+int alpm_db_unregister_all();
const char *alpm_db_get_name(const pmdb_t *db);
const char *alpm_db_get_url(const pmdb_t *db);