#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 DEFAULT_SECTION "audacious" |
Definition at line 32 of file config.c.
Referenced by config_clear_section(), config_set_defaults(), get_string(), and set_string().
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 | |||
) |
Definition at line 289 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(), create_playlist_category(), do_commands(), drct_pl_delete_selected(), drct_pl_next(), drct_pl_open(), drct_pl_open_list(), end_cb(), entry_find_to_scan(), eq_update(), fileinfo_recursive_get_image(), mpris_emit_status_change(), mpris_player_get_status(), on_filepopup_settings_clicked(), output_get_volume(), output_set_volume(), playback_get_title(), playlist_next_song(), playlist_prev_song(), playlist_save(), save_playlists(), shut_down(), sw_volume_toggled(), and widget_get_bool().
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 | |||
) |
Definition at line 322 of file config.c.
Referenced by apply_replay_gain(), audacious_rc_get_eq(), audacious_rc_get_eq_preamp(), eq_update(), and widget_get_double().
gint get_int | ( | const gchar * | section, | |
const gchar * | name | |||
) |
Definition at line 305 of file config.c.
Referenced by apply_software_volume(), fileinfo_recursive_get_image(), on_filepopup_settings_clicked(), open_audio(), output_get_volume(), sw_volume_toggled(), and widget_get_int().
gchar* get_string | ( | const gchar * | section, | |
const gchar * | name | |||
) |
Definition at line 265 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(), on_filepopup_settings_clicked(), title_from_tuple(), and widget_get_string().
void set_bool | ( | const gchar * | section, | |
const gchar * | name, | |||
gboolean | value | |||
) |
Definition at line 284 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(), complete_stop(), leading_zero_cb(), mpris_tracklist_loop(), mpris_tracklist_random(), on_filepopup_ok_clicked(), on_show_filepopup_toggled(), show_numbers_cb(), shut_down(), and widget_set_bool().
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 | |||
) |
Definition at line 216 of file config.c.
Referenced by eq_set_bands(), history_save(), on_filepopup_ok_clicked(), on_titlestring_entry_changed(), set_bool(), set_double(), set_int(), and widget_set_string().
const gchar* const core_defaults[] [static] |
Definition at line 34 of file config.c.
Referenced by config_load().
GHashTable* defaults [static] |
Definition at line 91 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().
GKeyFile* keyfile [static] |
Definition at line 92 of file config.c.
Referenced by config_cleanup(), config_clear_section(), config_load(), config_save(), config_set_defaults(), get_string(), and set_string().
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] |
Definition at line 90 of file config.c.
Referenced by config_cleanup(), config_clear_section(), config_load(), config_save(), config_set_defaults(), get_string(), and set_string().