summaryrefslogtreecommitdiffstats
path: root/src/pacman/conf.h
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2014-04-26 17:24:13 +0200
committerAllan McRae <allan@archlinux.org>2015-01-21 05:27:46 +0100
commit2aa85c3bfdb17a11213495558c493bc68408efe7 (patch)
treed8c034003fa3b73523c7fe3d5898e122ede8e87b /src/pacman/conf.h
parent92febc847cf60b12706c64e4786dae909a9396ac (diff)
downloadpacman-2aa85c3bfdb17a11213495558c493bc68408efe7.tar.gz
pacman-2aa85c3bfdb17a11213495558c493bc68408efe7.tar.xz
conf.c: store repo settings in dedicated struct
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Diffstat (limited to 'src/pacman/conf.h')
-rw-r--r--src/pacman/conf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pacman/conf.h b/src/pacman/conf.h
index 3141e2c3..e1d13379 100644
--- a/src/pacman/conf.h
+++ b/src/pacman/conf.h
@@ -34,6 +34,12 @@ typedef struct __colstr_t {
const char *nocolor;
} colstr_t;
+typedef struct __config_repo_t {
+ alpm_list_t *servers;
+ alpm_db_usage_t usage;
+ alpm_siglevel_t siglevel;
+} config_repo_t;
+
typedef struct __config_t {
unsigned short op;
unsigned short quiet;
@@ -208,6 +214,8 @@ void enable_colors(int colors);
config_t *config_new(void);
int config_free(config_t *oldconfig);
+void config_repo_free(config_repo_t *repo);
+
int config_set_arch(const char *arch);
int parseconfig(const char *file);
#endif /* _PM_CONF_H */