Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
Macros | Functions | Variables
config.c File Reference
#include <glib.h>
#include <pthread.h>
#include <stdio.h>
#include <string.h>
#include <libaudcore/audstrings.h>
#include <libaudcore/hook.h>
#include "main.h"
#include "misc.h"

Go to the source code of this file.

Macros

#define DEFAULT_SECTION   "audacious"

Functions

static void str_unref_cb (void *str)
void config_load (void)
void config_save (void)
void config_cleanup (void)
void config_clear_section (const char *section)
void config_set_defaults (const char *section, const char *const *entries)
static const char * get_default (const char *section, const char *name)
void set_string (const char *section, const char *name, const char *value)
char * get_string (const char *section, const char *name)
void set_bool (const char *section, const char *name, bool_t value)
bool_t get_bool (const char *section, const char *name)
void set_int (const char *section, const char *name, int value)
int get_int (const char *section, const char *name)
void set_double (const char *section, const char *name, double value)
double get_double (const char *section, const char *name)

Variables

static const char *const core_defaults []
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER
static GHashTable * defaults
static GKeyFile * keyfile
static bool_t modified

Macro Definition Documentation

#define DEFAULT_SECTION   "audacious"

Definition at line 31 of file config.c.

Referenced by config_clear_section(), config_set_defaults(), get_string(), and set_string().


Function Documentation

void config_cleanup ( void  )

Definition at line 161 of file config.c.

Referenced by shut_down().

void config_clear_section ( const char *  section)

Definition at line 174 of file config.c.

Referenced by history_save().

void config_load ( void  )

Definition at line 106 of file config.c.

Referenced by init_two().

void config_save ( void  )

Definition at line 133 of file config.c.

Referenced by do_autosave(), and shut_down().

void config_set_defaults ( const char *  section,
const char *const *  entries 
)

Definition at line 191 of file config.c.

Referenced by config_load().

bool_t get_bool ( const char *  section,
const char *  name 
)
static const char* get_default ( const char *  section,
const char *  name 
)
static

Definition at line 219 of file config.c.

Referenced by get_string(), and set_string().

double get_double ( const char *  section,
const char *  name 
)
int get_int ( const char *  section,
const char *  name 
)
char* get_string ( const char *  section,
const char *  name 
)
void set_bool ( const char *  section,
const char *  name,
bool_t  value 
)
void set_double ( const char *  section,
const char *  name,
double  value 
)

Definition at line 324 of file config.c.

Referenced by audacious_rc_set_eq(), audacious_rc_set_eq_preamp(), and widget_set_double().

void set_int ( const char *  section,
const char *  name,
int  value 
)

Definition at line 307 of file config.c.

Referenced by output_set_volume(), and widget_set_int().

void set_string ( const char *  section,
const char *  name,
const char *  value 
)
static void str_unref_cb ( void *  str)
static

Definition at line 101 of file config.c.

Referenced by config_set_defaults().


Variable Documentation

const char* const core_defaults[]
static

Definition at line 33 of file config.c.

Referenced by config_load().

GHashTable* defaults
static
GKeyFile* keyfile
static
bool_t modified
static
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER
static