confparser: Add function for getting the items of a section

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Johannes Löthberg 2015-06-14 15:08:40 +02:00 committed by Lukas Fleischer
parent d8e32ce5e1
commit 815e437f0c

View file

@ -24,6 +24,13 @@ function config_get_bool($section, $key) {
return ($val == 'yes' || $val == 'true' || $val == '1');
}
function config_items($section) {
global $AUR_CONFIG;
config_load();
return $AUR_CONFIG[$section];
}
function config_section_exists($key) {
global $AUR_CONFIG;
config_load();