libalpm
Arch Linux Package Manager Library
|
#include <alpm.h>
Go to the source code of this file.
Data Structures | |
struct | __config_t |
Typedefs | |
typedef struct __config_t | config_t |
Enumerations | |
enum | { PM_OP_MAIN = 1, PM_OP_REMOVE, PM_OP_UPGRADE, PM_OP_QUERY, PM_OP_SYNC, PM_OP_DEPTEST, PM_OP_DATABASE } |
enum | { OP_NOCONFIRM = 1000, OP_CONFIG, OP_IGNORE, OP_DEBUG, OP_NOPROGRESSBAR, OP_NOSCRIPTLET, OP_ASK, OP_CACHEDIR, OP_ASDEPS, OP_LOGFILE, OP_IGNOREGROUP, OP_NEEDED, OP_ASEXPLICIT, OP_ARCH, OP_PRINTFORMAT, OP_GPGDIR, OP_RECURSIVE, OP_DBONLY, OP_FORCE } |
enum | { PM_CLEAN_KEEPINST = 1, PM_CLEAN_KEEPCUR = (1 << 1) } |
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 |
typedef struct __config_t config_t |
anonymous enum |
anonymous enum |
anonymous enum |
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().