| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
/api-docs/deviceStates.{format} implementation- Device state resources More...
#include "asterisk.h"#include "resource_device_states.h"#include "asterisk/stasis_app_device_state.h"
Go to the source code of this file.
| 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). | |
/api-docs/deviceStates.{format} implementation- Device state resources
Definition in file resource_device_states.c.
| 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().