|
Asterisk - The Open Source Telephony Project
18.5.0
|
Sound file format and description indexer. More...

Go to the source code of this file.
Functions | |
| struct ast_media_index * | ast_sounds_get_index (void) |
| Get the sounds index. More... | |
| struct ast_media_index * | ast_sounds_get_index_for_file (const char *filename) |
| Get the index for a specific sound file. More... | |
Sound file format and description indexer.
Definition in file sounds_index.h.
| struct ast_media_index* ast_sounds_get_index | ( | void | ) |
Get the sounds index.
| sounds | index (must be ao2_cleanup()'ed) |
| NULL | on failure |
Definition at line 308 of file sounds.c.
References ast_sounds_get_index_for_file(), and NULL.
Referenced by ast_ari_sounds_list(), handle_cli_sound_show(), and handle_cli_sounds_show().
| struct ast_media_index* ast_sounds_get_index_for_file | ( | const char * | filename | ) |
Get the index for a specific sound file.
| filename | Sound file name without extension |
| sounds | index (must be ao2_cleanup()'ed) |
| NULL | on failure |
Definition at line 313 of file sounds.c.
References ao2_callback_data, ao2_ref, ast_config_AST_DATA_DIR, ast_free, ast_media_index_create(), AST_MODFLAG_GLOBAL_SYMBOLS, AST_MODFLAG_LOAD_ORDER, AST_MODPRI_APP_DEPEND, AST_MODULE_INFO(), AST_MODULE_SUPPORT_CORE, ast_str_buffer(), ast_str_create, ast_str_set(), ASTERISK_GPL_KEY, get_languages(), load_module(), NULL, unload_module(), and update_index_cb().
Referenced by ast_ari_sounds_get(), ast_sounds_get_index(), and handle_cli_sound_show().
1.8.13