Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Generated file - declares stubs to be implemented in res/ari/resource_sounds.c. More...
#include "asterisk/ari.h"
Go to the source code of this file.
Data Structures | |
struct | ast_ari_sounds_get_args |
struct | ast_ari_sounds_list_args |
Functions | |
void | ast_ari_sounds_get (struct ast_variable *headers, struct ast_ari_sounds_get_args *args, struct ast_ari_response *response) |
Get a sound's details. More... | |
void | ast_ari_sounds_list (struct ast_variable *headers, struct ast_ari_sounds_list_args *args, struct ast_ari_response *response) |
List all sounds. More... | |
int | ast_ari_sounds_list_parse_body (struct ast_json *body, struct ast_ari_sounds_list_args *args) |
Body parsing function for /sounds. More... | |
Generated file - declares stubs to be implemented in res/ari/resource_sounds.c.
Sound resources
Definition in file resource_sounds.h.
void ast_ari_sounds_get | ( | struct ast_variable * | headers, |
struct ast_ari_sounds_get_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Get a sound's details.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 220 of file resource_sounds.c.
References ao2_cleanup, args, ast_ari_response_error(), ast_ari_response_ok(), ast_sounds_get_index_for_file(), create_sound_blob(), and NULL.
Referenced by ast_ari_sounds_get_cb().
void ast_ari_sounds_list | ( | struct ast_variable * | headers, |
struct ast_ari_sounds_list_args * | args, | ||
struct ast_ari_response * | response | ||
) |
List all sounds.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 180 of file resource_sounds.c.
References ao2_callback_data, ao2_cleanup, append_sound_cb(), sounds_cb_data::args, args, ast_ari_response_error(), ast_ari_response_ok(), ast_json_array_create(), ast_json_array_size(), ast_json_unref(), ast_media_get_media(), ast_sounds_get_index(), NULL, OBJ_NODATA, and RAII_VAR.
Referenced by ast_ari_sounds_list_cb().
int ast_ari_sounds_list_parse_body | ( | struct ast_json * | body, |
struct ast_ari_sounds_list_args * | args | ||
) |
Body parsing function for /sounds.
body | The JSON body from which to parse parameters. | |
[out] | args | The args structure to parse into. |
zero | on success |
non-zero | on failure |
Definition at line 53 of file res_ari_sounds.c.
References args, ast_json_object_get(), and ast_json_string_get().
Referenced by ast_ari_sounds_list_cb().