Audacious
$Id:Doxyfile42802007-03-2104:39:00Znenolod$
|
#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 |
#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().
void config_cleanup | ( | void | ) |
Definition at line 162 of file config.c.
Referenced by shut_down().
void config_clear_section | ( | const char * | section | ) |
Definition at line 175 of file config.c.
Referenced by history_save().
void config_load | ( | void | ) |
Definition at line 107 of file config.c.
Referenced by init_two().
void config_save | ( | void | ) |
Definition at line 134 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 192 of file config.c.
Referenced by config_load().
bool_t get_bool | ( | const char * | section, |
const char * | name | ||
) |
Definition at line 300 of file config.c.
Referenced by add_finish(), add_list(), apply_replay_gain(), apply_software_volume(), audacious_rc_auto_advance(), audacious_rc_repeat(), audacious_rc_shuffle(), audacious_rc_stop_after(), audacious_rc_toggle_auto_advance(), audacious_rc_toggle_repeat(), audacious_rc_toggle_shuffle(), audacious_rc_toggle_stop_after(), construct_uri(), create_playlist_category(), do_commands(), drct_get_title(), drct_pl_next(), drct_pl_open(), drct_pl_open_list(), end_cb(), eq_update(), fileinfo_recursive_get_image(), iface_plugin_set_current(), mpris_emit_status_change(), mpris_player_get_status(), next_song_locked(), output_get_volume(), output_set_volume(), playlist_delete_selected(), playlist_entry_delete(), playlist_prev_song(), playlist_save(), queue_update(), widget_get_bool(), and write_output_raw().
|
static |
Definition at line 220 of file config.c.
Referenced by get_string(), and set_string().
double get_double | ( | const char * | section, |
const char * | name | ||
) |
Definition at line 333 of file config.c.
Referenced by apply_replay_gain(), audacious_rc_get_eq(), audacious_rc_get_eq_preamp(), eq_update(), and widget_get_double().
int get_int | ( | const char * | section, |
const char * | name | ||
) |
Definition at line 316 of file config.c.
Referenced by apply_software_volume(), fileinfo_recursive_get_image(), get_format(), output_get_volume(), and widget_get_int().
char* get_string | ( | const char * | section, |
const char * | name | ||
) |
Definition at line 276 of file config.c.
Referenced by cd_chardet_to_utf8(), create_titlestring_widgets(), eq_get_bands(), get_bool(), get_double(), get_int(), history_load(), is_front_cover_image(), title_from_tuple(), and widget_get_string().
void set_bool | ( | const char * | section, |
const char * | name, | ||
bool_t | value | ||
) |
Definition at line 295 of file config.c.
Referenced by audacious_rc_equalizer_activate(), audacious_rc_toggle_auto_advance(), audacious_rc_toggle_repeat(), audacious_rc_toggle_shuffle(), audacious_rc_toggle_stop_after(), interface_show(), leading_zero_cb(), mpris_player_repeat(), mpris_tracklist_loop(), mpris_tracklist_random(), playback_cleanup(), show_numbers_cb(), and widget_set_bool().
void set_double | ( | const char * | section, |
const char * | name, | ||
double | value | ||
) |
Definition at line 325 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 308 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 | ||
) |
Definition at line 227 of file config.c.
Referenced by eq_set_bands(), history_save(), on_titlestring_entry_changed(), set_bool(), set_double(), set_int(), and widget_set_string().
|
static |
Definition at line 102 of file config.c.
Referenced by config_set_defaults().
|
static |
Definition at line 33 of file config.c.
Referenced by config_load().
|
static |
Definition at line 97 of file config.c.
Referenced by config_cleanup(), config_clear_section(), config_load(), config_save(), config_set_defaults(), get_default(), get_string(), and set_string().
|
static |
Definition at line 98 of file config.c.
Referenced by config_cleanup(), config_clear_section(), config_load(), config_save(), config_set_defaults(), get_string(), and set_string().
|
static |
Definition at line 99 of file config.c.
Referenced by config_clear_section(), config_load(), config_save(), playlist_get_modified(), playlist_set_modified(), and set_string().
|
static |
Definition at line 96 of file config.c.
Referenced by config_cleanup(), config_clear_section(), config_load(), config_save(), config_set_defaults(), get_string(), and set_string().