From 2aa85c3bfdb17a11213495558c493bc68408efe7 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Sat, 26 Apr 2014 11:24:13 -0400 Subject: conf.c: store repo settings in dedicated struct Signed-off-by: Andrew Gregory --- src/pacman/conf.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/pacman/conf.h') 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 */ -- cgit v1.2.3-24-g4f1b