VLC 4.0.0-dev
|
Functions | |
void | config_Lock (void) |
void | config_Unlock (void) |
int | config_GetType (const char *name) |
Gets a configuration item type. | |
bool | config_IsSafe (const char *name) |
int64_t | config_GetInt (const char *name) |
Gets an integer configuration item's value. | |
float | config_GetFloat (const char *name) |
Gets a floating point configuration item's value. | |
char * | config_GetPsz (const char *name) |
Gets a string configuration item's value. | |
int | vlc_param_SetString (struct vlc_param *param, const char *value) |
void | config_PutPsz (const char *psz_name, const char *psz_value) |
Sets a string configuration item's value. | |
void | config_PutInt (const char *name, int64_t i_value) |
Sets an integer configuration item's value. | |
void | config_PutFloat (const char *name, float f_value) |
Sets a floating point configuration item's value. | |
ssize_t | config_GetIntChoices (const char *name, int64_t **restrict values, char ***restrict texts) |
static ssize_t | config_ListModules (const char *cap, char ***restrict values, char ***restrict texts) |
ssize_t | config_GetPszChoices (const char *name, char ***restrict values, char ***restrict texts) |
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) |
struct vlc_param * | vlc_param_Find (const char *name) |
Looks up a configuration parameter by name. | |
module_config_t * | config_FindConfig (const char *name) |
Looks up a configuration item. | |
void | config_Free (struct vlc_param *tab, size_t confsize) |
Destroys an array of configuration items. | |
void | config_ResetAll (void) |
Resets the configuration. | |
int | config_AutoSaveConfigFile (libvlc_int_t *p_this) |
Variables | ||
static vlc_mutex_t | config_lock = { .value = 0, .recursion = 0, .owner = 0, } | |
static atomic_bool | config_dirty = false | |
struct { | ||
struct vlc_param ** list | ||
size_t count | ||
} | config = { NULL, 0 } | |
|
static |
Referenced by config_SortConfig().
int config_AutoSaveConfigFile | ( | libvlc_int_t * | p_this | ) |
References config_dirty, config_SaveConfigFile, and unlikely.
Referenced by libvlc_InternalCleanup().
void config_Free | ( | struct vlc_param * | tab, |
size_t | confsize | ||
) |
Destroys an array of configuration items.
tab | start of array of items |
confsize | number of items in the array |
References module_config_t::i_type, IsConfigStringType, vlc_param::item, module_config_t::list, module_config_t::list_count, module_config_t::list_text, module_config_t::psz, vlc_param::str, and vlc_param::value.
Referenced by vlc_plugin_destroy().
ssize_t config_GetIntChoices | ( | const char * | name, |
int64_t **restrict | values, | ||
char ***restrict | texts | ||
) |
References count, module_config_t::i, vlc_param::i, vlc_param::item, module_config_t::list, module_config_t::list_count, module_config_t::list_text, name, vlc_param::owner, strdup(), unlikely, vlc_alloc(), vlc_gettext(), vlc_param_Find(), and vlc_plugin_Symbol().
Referenced by print_item().
ssize_t config_GetPszChoices | ( | const char * | name, |
char ***restrict | values, | ||
char ***restrict | texts | ||
) |
References CONFIG_ITEM_MODULE, config_ListModules(), count, vlc_param::i, module_config_t::i_type, IsConfigStringType, vlc_param::item, module_config_t::list, module_config_t::list_count, module_config_t::list_text, name, vlc_param::owner, module_config_t::psz, module_config_t::psz_type, strdup(), vlc_gettext(), vlc_param_Find(), and vlc_plugin_Symbol().
Referenced by print_item().
bool config_IsSafe | ( | const char * | name | ) |
References name, vlc_param::safe, and vlc_param_Find().
Referenced by var_OptionParse().
|
static |
References _, vlc_param::i, list, module_get_object(), module_GetLongName, module_gettext(), module_list_cap(), and strdup().
Referenced by config_GetPszChoices().
void config_Lock | ( | void | ) |
References config_lock, and vlc_mutex_lock().
Referenced by config_LoadConfigFile().
int config_SortConfig | ( | void | ) |
Index the configuration items by name for faster lookups.
References vlc_plugin_t::conf, confcmp(), config, CONFIG_ITEM, vlc_plugin_t::count, vlc_param::i, module_config_t::i_type, vlc_param::item, vlc_plugin_t::next, p, unlikely, vlc_alloc(), VLC_ENOMEM, vlc_plugins, and VLC_SUCCESS.
Referenced by module_InitBank(), and module_LoadPlugins().
void config_Unlock | ( | void | ) |
References config_lock, and vlc_mutex_unlock().
Referenced by config_LoadConfigFile().
void config_UnsortConfig | ( | void | ) |
References config.
Referenced by module_EndBank(), and module_LoadPlugins().
|
static |
Referenced by vlc_param_Find().
struct vlc_param * vlc_param_Find | ( | const char * | name | ) |
Looks up a configuration parameter by name.
References config, confnamecmp(), name, and p.
Referenced by config_ChainParse(), config_FindConfig(), config_GetFloat(), config_GetInt(), config_GetIntChoices(), config_GetPsz(), config_GetPszChoices(), config_GetType(), config_IsSafe(), config_LoadConfigFile(), config_PutFloat(), config_PutInt(), and config_PutPsz().
int vlc_param_SetString | ( | struct vlc_param * | param, |
const char * | value | ||
) |
References module_config_t::i_type, IsConfigStringType, vlc_param::item, module_value_t::psz, vlc_param::str, strdup(), unlikely, module_config_t::value, vlc_param::value, and vlc_rcu_synchronize().
Referenced by config_LoadConfigFile(), config_PutPsz(), config_ResetAll(), and vlc_plugin_desc_cb().
struct { ... } config |
|
static |
Referenced by config_AutoSaveConfigFile(), config_PutFloat(), config_PutInt(), config_PutPsz(), and config_ResetAll().
|
static |
Referenced by config_Lock(), config_PutFloat(), config_PutInt(), config_PutPsz(), config_ResetAll(), and config_Unlock().
size_t count |
Referenced by aout_FiltersPipelineChangeViewpoint(), aout_FiltersPipelineCreate(), aout_FiltersPipelineDrain(), aout_FiltersPipelineFlush(), aout_FiltersPipelinePlay(), aout_FiltersPipelineResetClock(), aout_FiltersPipelineSetClockDelay(), aout_HasMixModeChoice(), aout_HasStereoMode(), config_GetIntChoices(), config_GetPszChoices(), ControlSetEsList(), Destroy(), EsOutVaPrivControlLocked(), GetCCDescLocked(), hpack_decode(), hpack_encode(), InitPrograms(), input_EsOutTimeshiftNew(), input_item_GetMetaExtraNames(), input_resource_HoldVouts(), InputSourceInit(), ListModules(), module_find(), on_children_added(), on_children_removed(), OnParserAttachmentsAdded(), picture_pool_New(), picture_pool_NewFromFormat(), randomizer_Add(), randomizer_Remove(), vlc::threads::semaphore::semaphore(), spu_get_attachments(), SpuRenderSubpictures(), stream_extractor_AttachParsed(), stream_HandleDiscontinuity(), var_Change(), var_CountChoices(), vlc_alloc(), vlc_ancillary_array_Count(), vlc_ancillary_array_Dup(), vlc_ancillary_array_Insert(), vlc_atomic_timedwait(), vlc_atomic_timedwait_daytime(), vlc_atomic_wait(), vlc_dictionary_all_keys(), vlc_dictionary_insert_impl_(), vlc_dictionary_keys_count(), vlc_GetCPUCount(), vlc_h2_frame_headers(), vlc_h2_stream_headers(), vlc_https_recv(), vlc_https_send(), vlc_list_children(), vlc_ml_count_album_artists(), vlc_ml_count_album_tracks(), vlc_ml_count_albums(), vlc_ml_count_artist_albums(), vlc_ml_count_artist_tracks(), vlc_ml_count_artists(), vlc_ml_count_audio_history(), vlc_ml_count_audio_media(), vlc_ml_count_folder_media(), vlc_ml_count_folders(), vlc_ml_count_folders_by_type(), vlc_ml_count_genre_albums(), vlc_ml_count_genre_artists(), vlc_ml_count_genre_tracks(), vlc_ml_count_genres(), vlc_ml_count_group_media(), vlc_ml_count_groups(), vlc_ml_count_history(), vlc_ml_count_media(), vlc_ml_count_media_labels(), vlc_ml_count_playlist_media(), vlc_ml_count_playlists(), vlc_ml_count_show_episodes(), vlc_ml_count_shows(), vlc_ml_count_video_history(), vlc_ml_count_video_media(), vlc_player_CycleProgram(), vlc_player_CycleTrack(), vlc_player_GetSelectedProgram(), vlc_player_GetSelectedTrack(), vlc_player_osd_HoldAll(), vlc_player_osd_Icon(), vlc_player_osd_Message(), vlc_player_osd_Position(), vlc_player_osd_ReleaseAll(), vlc_player_osd_Volume(), vlc_player_RestartTrackCategory(), vlc_player_title_list_Create(), vlc_player_title_list_GetAt(), vlc_player_UnselectTrackCategory(), vlc_player_vout_HoldAll(), vlc_playlist_Append(), vlc_playlist_DeleteMetaArray(), vlc_playlist_Expand(), vlc_playlist_FindIndices(), vlc_playlist_Insert(), vlc_playlist_item_meta_InitFields(), vlc_playlist_item_meta_New(), vlc_playlist_ItemsInserted(), vlc_playlist_ItemsMoved(), vlc_playlist_ItemsRemoved(), vlc_playlist_ItemsRemoving(), vlc_playlist_MediaToItems(), vlc_playlist_Move(), vlc_playlist_MoveBySlices(), vlc_playlist_NewMetaArray(), vlc_playlist_Remove(), vlc_playlist_RemoveBySlices(), vlc_playlist_RequestInsert(), vlc_playlist_RequestMove(), vlc_playlist_RequestRemove(), vlc_playlist_Sort(), vlc_popcount_generic(), vlc_preparser_Cancel(), vlc_read_i11e(), vlc_readv_i11e(), vlc_reallocarray(), vlc_sd_GetNames(), vlc_timer_do(), vlc_tls_ConnectWrite(), vlc_tls_ProxyRead(), vlc_tls_ProxyWrite(), vlc_tls_SocketRead(), vlc_tls_SocketWrite(), vlc_vector_move_(), vlc_vector_reallocdata_(), vlc_write_i11e(), vlc_writev(), vlc_writev_i11e(), vouts_osd_Icon(), vouts_osd_Message(), and vouts_osd_Slider().
struct vlc_param** list |
Referenced by config_ListModules(), vlc::from(), vlc::from(), InputSourceInit(), ListModules(), module_find(), module_list_cap(), module_list_free(), module_need_var(), picture_pool_Release(), process_list(), SpuRenderCreateAndLoadText(), vlc_list_HasInput(), vlc_media_source_meta_list_Count(), vlc_media_source_meta_list_Delete(), vlc_media_source_meta_list_Get(), vlc_media_source_provider_List(), and vlc_ml_bookmark_list_release().