|
VLC
2.1.0-git
|

Functions | |
| static char * | strdupnull (const char *src) |
| int | config_GetType (((vlc_object_t *)(vlc_object_t *p_this)), const char *psz_name) |
| bool | config_IsSafe (const char *name) |
| int64_t | config_GetInt (((vlc_object_t *)(vlc_object_t *p_this)), const char *psz_name) |
| float | config_GetFloat (((vlc_object_t *)(vlc_object_t *p_this)), const char *psz_name) |
| char * | config_GetPsz (((vlc_object_t *)(vlc_object_t *p_this)), const char *psz_name) |
| void | config_PutPsz (((vlc_object_t *)(vlc_object_t *p_this)), const char *psz_name, const char *psz_value) |
| void | config_PutInt (((vlc_object_t *)(vlc_object_t *p_this)), const char *psz_name, int64_t i_value) |
| void | config_PutFloat (((vlc_object_t *)(vlc_object_t *p_this)), const char *psz_name, float f_value) |
| ssize_t | config_GetIntChoices (vlc_object_t *obj, const char *name, int64_t **restrict values, char ***restrict texts) |
| Determines a list of suggested values for an integer configuration item. | |
| static ssize_t | config_ListModules (const char *cap, char ***restrict values, char ***restrict texts) |
| ssize_t | config_GetPszChoices (vlc_object_t *obj, const char *name, char ***restrict values, char ***restrict texts) |
| Determines a list of suggested values for a string configuration item. | |
| static int | confcmp (const void *a, const void *b) |
| static int | confnamecmp (const void *key, const void *elem) |
| int | config_SortConfig (void) |
| Index the configuration items by name for faster lookups. | |
| void | config_UnsortConfig (void) |
| module_config_t * | config_FindConfig (vlc_object_t *p_this, const char *name) |
| void | config_Free (module_config_t *config, size_t confsize) |
| Destroys an array of configuration items. | |
| void | config_ResetAll (((vlc_object_t *)(vlc_object_t *p_this))) |
Variables | |
| vlc_rwlock_t | config_lock = PTHREAD_RWLOCK_INITIALIZER |
| bool | config_dirty = false |
| struct { | |
| module_config_t ** list | |
| size_t count | |
| } | config |
|
static |
Referenced by config_SortConfig().
| module_config_t* config_FindConfig | ( | vlc_object_t * | p_this, |
| const char * | name | ||
| ) |
References config, confnamecmp(), unlikely, and VLC_UNUSED.
Referenced by aout_New(), config_ChainParse(), config_GetFloat(), config_GetInt(), config_GetIntChoices(), config_GetPsz(), config_GetPszChoices(), config_GetType(), config_IsSafe(), config_LoadCmdLine(), config_LoadConfigFile(), config_PutFloat(), config_PutInt(), config_PutPsz(), and vout_InitInterlacingSupport().
| void config_Free | ( | module_config_t * | config, |
| size_t | confsize | ||
| ) |
Destroys an array of configuration items.
| config | start of array of items |
| confsize | number of items in the array |
References module_config_t::i, module_config_t::i_type, IsConfigIntegerType, IsConfigStringType, module_config_t::list, module_config_t::list_count, module_config_t::list_text, module_config_t::orig, module_value_t::psz, module_config_t::psz, module_config_t::psz_longtext, module_config_t::psz_name, module_config_t::psz_text, module_config_t::psz_type, and module_config_t::value.
Referenced by vlc_module_destroy().
| float config_GetFloat | ( | ((vlc_object_t *)(vlc_object_t *p_this)) | , |
| const char * | psz_name | ||
| ) |
| int64_t config_GetInt | ( | ((vlc_object_t *)(vlc_object_t *p_this)) | , |
| const char * | psz_name | ||
| ) |
| ssize_t config_GetIntChoices | ( | vlc_object_t * | obj, |
| const char * | name, | ||
| int64_t **restrict | values, | ||
| char ***restrict | texts | ||
| ) |
Determines a list of suggested values for an integer configuration item.
| values | pointer to a table of integer values [OUT] |
| texts | pointer to a table of descriptions strings [OUT] |
References config_FindConfig(), count, module_config_t::i, module_config_t::i_cb, module_config_t::list, module_config_t::list_count, module_config_t::list_text, msg_Warn, strdup(), unlikely, vlc_gettext(), and xmalloc().
| char* config_GetPsz | ( | ((vlc_object_t *)(vlc_object_t *p_this)) | , |
| const char * | psz_name | ||
| ) |
| ssize_t config_GetPszChoices | ( | vlc_object_t * | obj, |
| const char * | name, | ||
| char ***restrict | values, | ||
| char ***restrict | texts | ||
| ) |
Determines a list of suggested values for a string configuration item.
| values | pointer to a table of value strings [OUT] |
| texts | pointer to a table of descriptions strings [OUT] |
References config_FindConfig(), CONFIG_ITEM_MODULE, config_ListModules(), count, module_config_t::i_type, IsConfigStringType, module_config_t::list, module_config_t::list_count, module_config_t::list_text, module_config_t::psz, module_config_t::psz_cb, module_config_t::psz_type, vlc_gettext(), xmalloc(), and xstrdup.
| int config_GetType | ( | ((vlc_object_t *)(vlc_object_t *p_this)) | , |
| const char * | psz_name | ||
| ) |
| bool config_IsSafe | ( | const char * | name | ) |
References module_config_t::b_safe, and config_FindConfig().
Referenced by var_OptionParse().
|
static |
References _, list, module_get_name(), module_get_object(), module_gettext(), module_list_cap(), xmalloc(), and xstrdup.
Referenced by config_GetPszChoices().
| void config_PutFloat | ( | ((vlc_object_t *)(vlc_object_t *p_this)) | , |
| const char * | psz_name, | ||
| float | f_value | ||
| ) |
| void config_PutInt | ( | ((vlc_object_t *)(vlc_object_t *p_this)) | , |
| const char * | psz_name, | ||
| int64_t | i_value | ||
| ) |
| void config_PutPsz | ( | ((vlc_object_t *)(vlc_object_t *p_this)) | , |
| const char * | psz_name, | ||
| const char * | psz_value | ||
| ) |
| void config_ResetAll | ( | ((vlc_object_t *)(vlc_object_t *p_this)) | ) |
References config_lock, module_t::confsize, count, module_value_t::f, module_value_t::i, module_config_t::i_type, IsConfigFloatType, IsConfigIntegerType, IsConfigStringType, list, module_list_free(), module_list_get(), module_config_t::orig, module_t::p_config, module_value_t::psz, strdupnull(), module_config_t::value, vlc_rwlock_unlock(), vlc_rwlock_wrlock(), and VLC_UNUSED.
| int config_SortConfig | ( | void | ) |
Index the configuration items by name for faster lookups.
< Not enough memory
< No error
References confcmp(), config, CONFIG_ITEM, module_t::confsize, module_config_t::i_type, module_list_free(), module_list_get(), module_t::p_config, unlikely, VLC_ENOMEM, and VLC_SUCCESS.
Referenced by module_InitBank(), and module_LoadPlugins().
| void config_UnsortConfig | ( | void | ) |
References config.
Referenced by module_EndBank(), and module_LoadPlugins().
|
static |
Referenced by config_FindConfig().
|
inlinestatic |
References strdup().
Referenced by config_GetPsz(), and config_ResetAll().
| struct { ... } config |
Referenced by config_FindConfig(), config_SortConfig(), config_UnsortConfig(), and module_config_get().
| bool config_dirty = false |
Referenced by config_AutoSaveConfigFile(), config_PutFloat(), config_PutInt(), and config_PutPsz().
| vlc_rwlock_t config_lock = PTHREAD_RWLOCK_INITIALIZER |
| size_t count |
Referenced by __vlc_dictionary_insert(), aout_FiltersPipelineCreate(), aout_FiltersPipelinePlay(), config_GetIntChoices(), config_GetPszChoices(), config_LoadCmdLine(), config_ResetAll(), config_SaveConfigFile(), ListModules(), module_find(), module_find_by_shortcut(), module_LoadPlugins(), picture_pool_Reserve(), popcount(), SeekpointCallback(), SpuRenderSubpictures(), SubtitleAdd(), TitleCallback(), Usage(), var_CountChoices(), vlc_dictionary_all_keys(), vlc_dictionary_keys_count(), vlc_GetCPUCount(), vlc_list_children(), vlc_rand_bytes(), vlc_sd_GetNames(), and vlc_timer_do().
1.8.1.2