VLC 4.0.0-dev
|
Functions | |
static char * | config_GetConfigFile (libvlc_int_t *obj) |
Get the user's configuration file. | |
static FILE * | config_OpenConfigFile (libvlc_int_t *p_obj) |
static int64_t | vlc_strtoi (const char *str) |
int | config_LoadConfigFile (libvlc_int_t *p_this) |
static int | config_CreateDir (libvlc_int_t *p_this, 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 (libvlc_int_t *obj) |
int() | config_SaveConfigFile (libvlc_int_t *p_this) |
Saves the in-memory configuration into a file. | |
|
static |
References msg_Warn, vlc_mkdir_parent(), and vlc_strerror_c().
Referenced by config_PrepareDir().
|
static |
Get the user's configuration file.
References asprintf(), CONFIG_FILE, config_GetUserDir(), DIR_SEP, var_InheritString(), and VLC_CONFIG_DIR.
Referenced by config_OpenConfigFile(), and config_SaveConfigFile().
int config_LoadConfigFile | ( | libvlc_int_t * | p_this | ) |
References atof(), CONFIG_CLASS, CONFIG_ITEM_BOOL, CONFIG_ITEM_FLOAT, CONFIG_ITEM_INTEGER, config_Lock(), config_OpenConfigFile(), config_Unlock(), module_value_t::f, vlc_param::f, freelocale(), getline(), module_value_t::i, vlc_param::i, module_config_t::i_type, vlc_param::item, LC_NUMERIC_MASK, module_config_t::max, msg_Err, msg_Warn, newlocale(), vlc_param::obsolete, rewind(), vlc_param::unsaved, uselocale(), module_config_t::value, vlc_param::value, VLC_EGENERIC, vlc_param_Find(), vlc_param_SetString(), vlc_strerror_c(), and vlc_strtoi().
Referenced by libvlc_InternalInit().
|
static |
References asprintf(), CONFIG_FILE, config_GetConfigFile(), config_GetUserDir(), msg_Dbg, msg_Err, msg_Info, vlc_fopen(), VLC_HOME_DIR, and vlc_strerror_c().
Referenced by config_LoadConfigFile().
|
static |
References config_CreateDir(), config_GetUserDir(), and VLC_CONFIG_DIR.
Referenced by config_SaveConfigFile().
|
static |
References name, and vlc_gettext().
Referenced by config_SaveConfigFile().
|
static |
References strtoll().
Referenced by config_LoadConfigFile().