summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/db.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 11:08:17 -0400
commitee977019e39fe33a508a60abe4a3ad7eff819b74 (patch)
tree31d12be64448f6fab2e015f6fcba5055d1321cf4 /lib/libalpm/db.h
parent47cada81a0a8fdd4c77645233ed8406b829b552c (diff)
downloadpacman-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/db.h')
-rw-r--r--lib/libalpm/db.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/db.h b/lib/libalpm/db.h
index 2597c8c4..d31bf60e 100644
--- a/lib/libalpm/db.h
+++ b/lib/libalpm/db.h
@@ -53,6 +53,7 @@ void _alpm_db_free(pmdb_t *db);
int _alpm_db_cmp(const void *db1, const void *db2);
alpm_list_t *_alpm_db_search(pmdb_t *db, const alpm_list_t *needles);
pmdb_t *_alpm_db_register(const char *treename);
+void _alpm_db_unregister(pmdb_t *db);
/* be.c, backend specific calls */
int _alpm_db_install(pmdb_t *db, const char *dbfile);