
Functions | |
| static char * | strdupnull (const char *src) |
| static char * | config_GetConfigFile (vlc_object_t *obj) |
| Get the user's configuration file. | |
| static FILE * | config_OpenConfigFile (vlc_object_t *p_obj) |
| static int | strtoi (const char *str) |
| int | config_LoadConfigFile (vlc_object_t *p_this, const char *psz_module_name) |
| int | config_CreateDir (vlc_object_t *p_this, const char *psz_dirname) |
| static int | config_Write (FILE *file, const char *desc, const char *type, bool comment, const char *name, const char *fmt,...) |
| static int | config_PrepareDir (vlc_object_t *obj) |
| static int | SaveConfigFile (vlc_object_t *p_this, const char *psz_module_name, bool b_autosave) |
| int | config_AutoSaveConfigFile (vlc_object_t *p_this) |
| int | config_SaveConfigFile (vlc_object_t *p_this, const char *psz_module_name) |
| int config_AutoSaveConfigFile | ( | vlc_object_t * | p_this | ) |
References module_config_t::b_autosave, module_config_t::b_dirty, config_lock, module_t::confsize, module_t::i_config_items, list, module_list_free(), module_list_get(), module_t::p_config, p_item, SaveConfigFile(), vlc_rwlock_rdlock(), vlc_rwlock_unlock(), and VLC_SUCCESS.
Referenced by module_EndBank().
| int config_CreateDir | ( | vlc_object_t * | p_this, | |
| const char * | psz_dirname | |||
| ) |
References config_CreateDir(), DIR_SEP_CHAR, msg_Warn, and vlc_mkdir().
Referenced by config_CreateDir(), config_PrepareDir(), and playlist_MLDump().
| static char* config_GetConfigFile | ( | vlc_object_t * | obj | ) | [static] |
Get the user's configuration file.
References asprintf(), CONFIG_FILE, config_GetUserDir(), DIR_SEP, var_CreateGetNonEmptyString, var_Destroy, and VLC_CONFIG_DIR.
Referenced by config_OpenConfigFile(), and SaveConfigFile().
| int config_LoadConfigFile | ( | vlc_object_t * | p_this, | |
| const char * | psz_module_name | |||
| ) |
References atof(), CONFIG_HINT, CONFIG_ITEM_BOOL, CONFIG_ITEM_FLOAT, CONFIG_ITEM_INTEGER, CONFIG_ITEM_KEY, config_lock, config_OpenConfigFile(), ConfigStringToKey(), module_t::confsize, convert, module_value_t::f, freelocale(), FromLocaleDup(), module_value_t::i, i, module_t::i_config_items, module_config_t::i_type, LC_NUMERIC_MASK, gen_builder::line, list, module_list_free(), module_list_get(), msg_Dbg, msg_Err, msg_Warn, newlocale(), module_t::p_config, p_item, module_value_t::psz, module_config_t::psz_name, module_t::psz_object_name, rewind(), module_config_t::saved, strdupnull(), strtoi(), uselocale(), module_config_t::value, VLC_EGENERIC, vlc_rwlock_unlock(), and vlc_rwlock_wrlock().
| static FILE* config_OpenConfigFile | ( | vlc_object_t * | p_obj | ) | [static] |
References asprintf(), CONFIG_FILE, config_GetConfigFile(), config_GetUserDir(), msg_Dbg, msg_Err, msg_Info, vlc_object_t::p_libvlc, p_stream, vlc_fopen(), and VLC_HOME_DIR.
Referenced by config_LoadConfigFile(), and SaveConfigFile().
| static int config_PrepareDir | ( | vlc_object_t * | obj | ) | [static] |
References config_CreateDir(), config_GetUserDir(), and VLC_CONFIG_DIR.
Referenced by SaveConfigFile().
| int config_SaveConfigFile | ( | vlc_object_t * | p_this, | |
| const char * | psz_module_name | |||
| ) |
References SaveConfigFile().
| static int config_Write | ( | FILE * | file, | |
| const char * | desc, | |||
| const char * | type, | |||
| bool | comment, | |||
| const char * | name, | |||
| const char * | fmt, | |||
| ... | ||||
| ) | [static] |
| static int SaveConfigFile | ( | vlc_object_t * | p_this, | |
| const char * | psz_module_name, | |||
| bool | b_autosave | |||
| ) | [static] |
References asprintf(), module_config_t::b_autosave, module_config_t::b_dirty, module_config_t::b_removed, module_config_t::b_unsaveable, config_GetConfigFile(), CONFIG_HINT, CONFIG_ITEM_BOOL, CONFIG_ITEM_KEY, config_lock, config_OpenConfigFile(), config_PrepareDir(), config_Write(), ConfigKeyToString(), module_t::confsize, module_value_t::f, freelocale(), getpid(), module_value_t::i, module_t::i_config_items, module_config_t::i_type, IsConfigFloatType(), IsConfigIntegerType(), IsConfigStringType(), LC_NUMERIC_MASK, list, lock, LONG_MAX, module_list_free(), module_list_get(), msg_Dbg, msg_Err, N_, newlocale(), module_config_t::orig, module_t::p_config, p_item, module_value_t::psz, module_t::psz_longname, module_config_t::psz_name, module_t::psz_object_name, module_config_t::psz_text, psz_value, module_config_t::saved, strdupnull(), uselocale(), module_config_t::value, vlc_mutex_lock(), vlc_mutex_unlock(), vlc_open(), vlc_rename(), vlc_rwlock_rdlock(), vlc_rwlock_unlock(), VLC_STATIC_MUTEX, and vlc_unlink().
Referenced by config_AutoSaveConfigFile(), and config_SaveConfigFile().
| static char* strdupnull | ( | const char * | src | ) | [inline, static] |
References strdup().
| static int strtoi | ( | const char * | str | ) | [static] |
Referenced by config_LoadConfigFile().
1.5.6