|
Asterisk - The Open Source Telephony Project GIT-master-27fb039
|
Generated file - declares stubs to be implemented in res/ari/resource_deviceStates.c. More...
#include "asterisk/ari.h"

Go to the source code of this file.
Data Structures | |
| struct | ast_ari_device_states_delete_args |
| struct | ast_ari_device_states_get_args |
| struct | ast_ari_device_states_list_args |
| struct | ast_ari_device_states_update_args |
Functions | |
| void | ast_ari_device_states_delete (struct ast_variable *headers, struct ast_ari_device_states_delete_args *args, struct ast_ari_response *response) |
| Destroy a device-state controlled by ARI. | |
| void | ast_ari_device_states_get (struct ast_variable *headers, struct ast_ari_device_states_get_args *args, struct ast_ari_response *response) |
| Retrieve the current state of a device. | |
| void | ast_ari_device_states_list (struct ast_variable *headers, struct ast_ari_device_states_list_args *args, struct ast_ari_response *response) |
| List all ARI controlled device states. | |
| void | ast_ari_device_states_update (struct ast_variable *headers, struct ast_ari_device_states_update_args *args, struct ast_ari_response *response) |
| Change the state of a device controlled by ARI. (Note - implicitly creates the device state). | |
| int | ast_ari_device_states_update_parse_body (struct ast_json *body, struct ast_ari_device_states_update_args *args) |
| Body parsing function for /deviceStates/{deviceName}. | |
Generated file - declares stubs to be implemented in res/ari/resource_deviceStates.c.
Device state resources
Definition in file resource_device_states.h.
| void ast_ari_device_states_delete | ( | struct ast_variable * | headers, |
| struct ast_ari_device_states_delete_args * | args, | ||
| struct ast_ari_response * | response | ||
| ) |
Destroy a device-state controlled by ARI.
| headers | HTTP headers | |
| args | Swagger parameters | |
| [out] | response | HTTP response |
Definition at line 91 of file resource_device_states.c.
References args, ast_ari_response_error(), ast_ari_response_no_content(), stasis_app_device_state_delete(), STASIS_DEVICE_STATE_MISSING, STASIS_DEVICE_STATE_NOT_CONTROLLED, STASIS_DEVICE_STATE_OK, STASIS_DEVICE_STATE_SUBSCRIBERS, and STASIS_DEVICE_STATE_UNKNOWN.
Referenced by ast_ari_device_states_delete_cb().
| void ast_ari_device_states_get | ( | struct ast_variable * | headers, |
| struct ast_ari_device_states_get_args * | args, | ||
| struct ast_ari_response * | response | ||
| ) |
Retrieve the current state of a device.
| headers | HTTP headers | |
| args | Swagger parameters | |
| [out] | response | HTTP response |
Definition at line 51 of file resource_device_states.c.
References args, ast_ari_response_error(), ast_ari_response_ok(), and stasis_app_device_state_to_json().
Referenced by ast_ari_device_states_get_cb().
| void ast_ari_device_states_list | ( | struct ast_variable * | headers, |
| struct ast_ari_device_states_list_args * | args, | ||
| struct ast_ari_response * | response | ||
| ) |
List all ARI controlled device states.
| headers | HTTP headers | |
| args | Swagger parameters | |
| [out] | response | HTTP response |
Definition at line 35 of file resource_device_states.c.
References ast_ari_response_error(), ast_ari_response_ok(), and stasis_app_device_states_to_json().
Referenced by ast_ari_device_states_list_cb().
| void ast_ari_device_states_update | ( | struct ast_variable * | headers, |
| struct ast_ari_device_states_update_args * | args, | ||
| struct ast_ari_response * | response | ||
| ) |
Change the state of a device controlled by ARI. (Note - implicitly creates the device state).
| headers | HTTP headers | |
| args | Swagger parameters | |
| [out] | response | HTTP response |
Definition at line 67 of file resource_device_states.c.
References args, ast_ari_response_error(), ast_ari_response_no_content(), stasis_app_device_state_update(), STASIS_DEVICE_STATE_MISSING, STASIS_DEVICE_STATE_NOT_CONTROLLED, STASIS_DEVICE_STATE_OK, STASIS_DEVICE_STATE_SUBSCRIBERS, and STASIS_DEVICE_STATE_UNKNOWN.
Referenced by ast_ari_device_states_update_cb().
| int ast_ari_device_states_update_parse_body | ( | struct ast_json * | body, |
| struct ast_ari_device_states_update_args * | args | ||
| ) |
Body parsing function for /deviceStates/{deviceName}.
| 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 165 of file res_ari_device_states.c.
References args, ast_json_object_get(), and ast_json_string_get().
Referenced by ast_ari_device_states_update_cb().