summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/handle.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-03 19:06:25 +0200
committerDan McGee <dan@archlinux.org>2011-06-03 19:06:25 +0200
commitc47d25d74be9ce1fbbfb8577687d9f37ba38d98b (patch)
tree6f09de2695287954f8f83a6dae22e00463f31e78 /lib/libalpm/handle.h
parent2102d1a2eb6cb9db674fd76aa7aa3192befad733 (diff)
downloadpacman-c47d25d74be9ce1fbbfb8577687d9f37ba38d98b.tar.gz
pacman-c47d25d74be9ce1fbbfb8577687d9f37ba38d98b.tar.xz
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/handle.h')
-rw-r--r--lib/libalpm/handle.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/handle.h b/lib/libalpm/handle.h
index aa00b6f0..08dbe739 100644
--- a/lib/libalpm/handle.h
+++ b/lib/libalpm/handle.h
@@ -33,7 +33,7 @@
#include <curl/curl.h>
#endif
-typedef struct _pmhandle_t {
+struct __pmhandle_t {
/* internal usage */
pmdb_t *db_local; /* local db pointer */
alpm_list_t *dbs_sync; /* List of (pmdb_t *) */
@@ -73,7 +73,7 @@ typedef struct _pmhandle_t {
int usedelta; /* Download deltas if possible */
int checkspace; /* Check disk space before installing */
pgp_verify_t sigverify; /* Default signature verification level */
-} pmhandle_t;
+};
/* global handle variable */
extern pmhandle_t *handle;