Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Generated file - declares stubs to be implemented in res/ari/resource_playbacks.c. More...
#include "asterisk/ari.h"
Go to the source code of this file.
Data Structures | |
struct | ast_ari_playbacks_control_args |
struct | ast_ari_playbacks_get_args |
struct | ast_ari_playbacks_stop_args |
Functions | |
void | ast_ari_playbacks_control (struct ast_variable *headers, struct ast_ari_playbacks_control_args *args, struct ast_ari_response *response) |
Control a playback. More... | |
int | ast_ari_playbacks_control_parse_body (struct ast_json *body, struct ast_ari_playbacks_control_args *args) |
Body parsing function for /playbacks/{playbackId}/control. More... | |
void | ast_ari_playbacks_get (struct ast_variable *headers, struct ast_ari_playbacks_get_args *args, struct ast_ari_response *response) |
Get a playback's details. More... | |
void | ast_ari_playbacks_stop (struct ast_variable *headers, struct ast_ari_playbacks_stop_args *args, struct ast_ari_response *response) |
Stop a playback. More... | |
Generated file - declares stubs to be implemented in res/ari/resource_playbacks.c.
Playback control resources
Definition in file resource_playbacks.h.
void ast_ari_playbacks_control | ( | struct ast_variable * | headers, |
struct ast_ari_playbacks_control_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Control a playback.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 89 of file resource_playbacks.c.
References ao2_cleanup, args, ast_ari_response_error(), ast_ari_response_no_content(), NULL, RAII_VAR, stasis_app_playback_find_by_id(), stasis_app_playback_operation(), STASIS_PLAYBACK_FORWARD, STASIS_PLAYBACK_OPER_FAILED, STASIS_PLAYBACK_OPER_NOT_PLAYING, STASIS_PLAYBACK_OPER_OK, STASIS_PLAYBACK_PAUSE, STASIS_PLAYBACK_RESTART, STASIS_PLAYBACK_REVERSE, and STASIS_PLAYBACK_UNPAUSE.
Referenced by ast_ari_playbacks_control_cb().
int ast_ari_playbacks_control_parse_body | ( | struct ast_json * | body, |
struct ast_ari_playbacks_control_args * | args | ||
) |
Body parsing function for /playbacks/{playbackId}/control.
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 174 of file res_ari_playbacks.c.
References args, ast_json_object_get(), and ast_json_string_get().
Referenced by ast_ari_playbacks_control_cb().
void ast_ari_playbacks_get | ( | struct ast_variable * | headers, |
struct ast_ari_playbacks_get_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Get a playback's details.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 35 of file resource_playbacks.c.
References ao2_cleanup, args, ast_ari_response_error(), ast_ari_response_ok(), NULL, RAII_VAR, stasis_app_playback_find_by_id(), and stasis_app_playback_to_json().
Referenced by ast_ari_playbacks_get_cb().
void ast_ari_playbacks_stop | ( | struct ast_variable * | headers, |
struct ast_ari_playbacks_stop_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Stop a playback.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 58 of file resource_playbacks.c.
References ao2_cleanup, args, ast_ari_response_error(), ast_ari_response_no_content(), ast_assert, NULL, RAII_VAR, stasis_app_playback_find_by_id(), stasis_app_playback_operation(), STASIS_PLAYBACK_OPER_FAILED, STASIS_PLAYBACK_OPER_NOT_PLAYING, STASIS_PLAYBACK_OPER_OK, and STASIS_PLAYBACK_STOP.
Referenced by ast_ari_playbacks_stop_cb().