Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
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_str_buffer(), ast_str_create, ast_str_set(), get_languages(), NULL, and update_index_cb().
Referenced by ast_ari_sounds_get(), ast_sounds_get_index(), and handle_cli_sound_show().