libalpm
Arch Linux Package Manager Library
Data Structures | Typedefs | Enumerations | Functions | Variables
conf.h File Reference
#include <alpm.h>
Include dependency graph for conf.h:
This graph shows which files directly or indirectly include this file:

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_tconfig_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_tconfig

Typedef Documentation

typedef struct __config_t config_t

Enumeration Type Documentation

anonymous enum
Enumerator:
PM_OP_MAIN 
PM_OP_REMOVE 
PM_OP_UPGRADE 
PM_OP_QUERY 
PM_OP_SYNC 
PM_OP_DEPTEST 
PM_OP_DATABASE 

Definition at line 102 of file conf.h.

anonymous enum
Enumerator:
OP_NOCONFIRM 
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 

Definition at line 113 of file conf.h.

anonymous enum
Enumerator:
PM_CLEAN_KEEPINST 
PM_CLEAN_KEEPCUR 

Definition at line 136 of file conf.h.


Function Documentation

int config_free ( config_t oldconfig)
config_t* config_new ( void  )
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().

Here is the call graph for this function:

int parseconfig ( const char *  file)

Parse a configuration file.

Parameters:
filepath to the config file
Returns:
0 on success, non-zero on error

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation