libalpm
Arch Linux Package Manager Library
Data Structures | Functions | Variables
conf.c File Reference
#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"
Include dependency graph for conf.c:

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_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 = NULL

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

config_t* config = NULL