summaryrefslogtreecommitdiff
path: root/src/pacman/conf.h
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2018-01-13 11:49:58 -0500
committerAllan McRae <allan@archlinux.org>2018-01-18 13:43:08 +1000
commitfa745fb4677c3de37aad93b180fe9475179eb7e6 (patch)
tree1ee03868338a6d87b30739cace11cf214cdb5466 /src/pacman/conf.h
parent0bbf9ddf9dff45346fb95bc6b6f1db8320551b6a (diff)
downloadpacman-fa745fb4677c3de37aad93b180fe9475179eb7e6.tar.xz
extract default settings to separate function
Default values for configuration settings were being set during alpm setup and in some cases were never saved back to the original config struct. Refactoring all default settings into a separate function and saving them onto the original config struct will allow pacman-conf to resolve the defaults without having to setup alpm. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman/conf.h')
-rw-r--r--src/pacman/conf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/conf.h b/src/pacman/conf.h
index e937051b..786eec6e 100644
--- a/src/pacman/conf.h
+++ b/src/pacman/conf.h
@@ -243,6 +243,7 @@ void config_repo_free(config_repo_t *repo);
int config_set_arch(const char *arch);
int parseconfig(const char *file);
int parseconfigfile(const char *file);
+int setdefaults(config_t *c);
#endif /* PM_CONF_H */
/* vim: set noet: */