summaryrefslogtreecommitdiffstats
path: root/src/pacman/conf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/conf.h')
-rw-r--r--src/pacman/conf.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/pacman/conf.h b/src/pacman/conf.h
index 01d69498..989fa2c8 100644
--- a/src/pacman/conf.h
+++ b/src/pacman/conf.h
@@ -24,7 +24,6 @@
#include <alpm.h>
typedef struct __config_t {
- char *configfile;
unsigned short op;
unsigned short quiet;
unsigned short verbose;
@@ -34,10 +33,14 @@ typedef struct __config_t {
unsigned short noconfirm;
unsigned short noprogressbar;
unsigned short logmask;
- /* keep track if we had paths specified on command line */
- unsigned short have_root;
- unsigned short have_dbpath;
- unsigned short have_logfile;
+ /* unfortunately, we have to keep track of paths both here and in the library
+ * because they can come from both the command line or config file, and we
+ * need to ensure we get the order of preference right. */
+ char *configfile;
+ char *rootdir;
+ char *dbpath;
+ char *logfile;
+ /* TODO how to handle cachedirs? */
unsigned short op_q_isfile;
unsigned short op_q_info;