Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/db.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-03 12:06:25 -0500
committerDan McGee <dan@archlinux.org>2011-06-03 12:06:25 -0500
commitc47d25d74be9ce1fbbfb8577687d9f37ba38d98b (patch)
tree6f09de2695287954f8f83a6dae22e00463f31e78 /lib/libalpm/db.h
parent2102d1a2eb6cb9db674fd76aa7aa3192befad733 (diff)
Add handle attribute to pmdb_t struct
This is the first step in a long process to remove our dependence on the global handle variable we currently share in libalpm, with the goal to make things a bit more thread-safe and re-entrant. Signed-off-by: Dan McGee <dan@archlinux.org>
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 399e2d56..8d92bd2d 100644
--- a/lib/libalpm/db.h
+++ b/lib/libalpm/db.h
@@ -53,6 +53,7 @@ struct db_operations {
/* Database */
struct __pmdb_t {
+ pmhandle_t *handle;
char *treename;
/* do not access directly, use _alpm_db_path(db) for lazy access */
char *_path;