libalpm
Arch Linux Package Manager Library
|
#include <errno.h>
#include <glob.h>
#include <limits.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/utsname.h>
#include <unistd.h>
#include "conf.h"
#include "util.h"
#include "pacman.h"
#include "callback.h"
Go to the source code of this file.
Data Structures | |
struct | section_t |
Allows parsing in advance of an entire config section before we start calling library methods. More... | |
Functions | |
config_t * | config_new (void) |
int | config_free (config_t *oldconfig) |
int | config_set_arch (const char *arch) |
int | parseconfig (const char *file) |
Parse a configuration file. | |
Variables | |
config_t * | config = NULL |
int config_free | ( | config_t * | oldconfig | ) |
Definition at line 63 of file conf.c.
References alpm_list_free(), __config_t::arch, __config_t::cachedirs, __config_t::configfile, __config_t::dbpath, __config_t::explicit_adds, __config_t::explicit_removes, FREELIST, __config_t::gpgdir, __config_t::holdpkg, __config_t::ignoregrp, __config_t::ignorepkg, __config_t::logfile, __config_t::noextract, __config_t::noupgrade, __config_t::print_format, __config_t::rootdir, __config_t::syncfirst, and __config_t::xfercommand.
config_t* config_new | ( | void | ) |
Definition at line 42 of file conf.c.
References _, alpm_capabilities(), ALPM_CAPABILITY_SIGNATURES, ALPM_LOG_ERROR, ALPM_LOG_WARNING, ALPM_SIG_DATABASE, ALPM_SIG_DATABASE_OPTIONAL, ALPM_SIG_PACKAGE, ALPM_SIG_PACKAGE_OPTIONAL, __config_t::configfile, __config_t::logmask, __config_t::op, PM_OP_MAIN, pm_printf(), and __config_t::siglevel.
Referenced by main().
int config_set_arch | ( | const char * | arch | ) |
Definition at line 226 of file conf.c.
References ALPM_LOG_DEBUG, __config_t::arch, and pm_printf().
int parseconfig | ( | const char * | file | ) |
Parse a configuration file.
file | path to the config file |
Definition at line 873 of file conf.c.
References ALPM_LOG_DEBUG, ALPM_SIG_USE_DEFAULT, pm_printf(), and section_t::siglevel.
Referenced by main().
Definition at line 40 of file conf.c.
Referenced by _alpm_pkg_load_internal(), cb_dl_progress(), cb_event(), cb_progress(), cb_question(), check_syncdbs(), display_targets(), dump_pkg_backups(), dump_pkg_files(), dump_pkg_full(), main(), multiselect_question(), needs_root(), pacman_database(), pacman_deptest(), pacman_query(), pacman_remove(), pacman_sync(), pacman_upgrade(), pm_vasprintf(), pm_vfprintf(), print_packages(), select_question(), sync_prepare_execute(), trans_init(), trans_init_error(), and trans_release().