config.c File Reference

#include <glib.h>
#include <stdio.h>
#include <libaudcore/audstrings.h>
#include <libaudcore/eventqueue.h>
#include <libaudcore/stringpool.h>
#include "main.h"
#include "misc.h"

Go to the source code of this file.

Defines

#define DEFAULT_SECTION   "audacious"

Functions

void config_load (void)
void config_save (void)
void config_cleanup (void)
void config_clear_section (const gchar *section)
void config_set_defaults (const gchar *section, const gchar *const *entries)
static const gchar * get_default (const gchar *section, const gchar *name)
void set_string (const gchar *section, const gchar *name, const gchar *value)
gchar * get_string (const gchar *section, const gchar *name)
void set_bool (const gchar *section, const gchar *name, gboolean value)
gboolean get_bool (const gchar *section, const gchar *name)
void set_int (const gchar *section, const gchar *name, gint value)
gint get_int (const gchar *section, const gchar *name)
void set_double (const gchar *section, const gchar *name, gdouble value)
gdouble get_double (const gchar *section, const gchar *name)

Variables

static const gchar *const core_defaults []
static GStaticMutex mutex = G_STATIC_MUTEX_INIT
static GHashTable * defaults
static GKeyFile * keyfile
static gboolean modified

Define Documentation

#define DEFAULT_SECTION   "audacious"

Definition at line 32 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 150 of file config.c.

Referenced by shut_down().

void config_clear_section ( const gchar *  section  ) 

Definition at line 163 of file config.c.

Referenced by history_save().

void config_load ( void   ) 

Definition at line 95 of file config.c.

Referenced by init_two().

void config_save ( void   ) 

Definition at line 122 of file config.c.

Referenced by do_autosave(), and shut_down().

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

Definition at line 180 of file config.c.

Referenced by config_load().

gboolean get_bool ( const gchar *  section,
const gchar *  name 
)
static const gchar* get_default ( const gchar *  section,
const gchar *  name 
) [static]

Definition at line 209 of file config.c.

Referenced by get_string(), and set_string().

gdouble get_double ( const gchar *  section,
const gchar *  name 
)
gint get_int ( const gchar *  section,
const gchar *  name 
)
gchar* get_string ( const gchar *  section,
const gchar *  name 
)
void set_bool ( const gchar *  section,
const gchar *  name,
gboolean  value 
)
void set_double ( const gchar *  section,
const gchar *  name,
gdouble  value 
)

Definition at line 314 of file config.c.

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

void set_int ( const gchar *  section,
const gchar *  name,
gint  value 
)

Definition at line 297 of file config.c.

Referenced by on_filepopup_ok_clicked(), output_set_volume(), and widget_set_int().

void set_string ( const gchar *  section,
const gchar *  name,
const gchar *  value 
)

Variable Documentation

const gchar* const core_defaults[] [static]

Definition at line 34 of file config.c.

Referenced by config_load().

GHashTable* defaults [static]
GKeyFile* keyfile [static]
gboolean modified [static]

Definition at line 93 of file config.c.

Referenced by config_clear_section(), config_load(), config_save(), and set_string().

GStaticMutex mutex = G_STATIC_MUTEX_INIT [static]

Generated on 26 Jan 2012 for Audacious by  doxygen 1.6.1