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

Go to the source code of this file.
| Data Structures | |
| struct | ast_ari_mailboxes_delete_args | 
| struct | ast_ari_mailboxes_get_args | 
| struct | ast_ari_mailboxes_list_args | 
| struct | ast_ari_mailboxes_update_args | 
| Functions | |
| void | ast_ari_mailboxes_delete (struct ast_variable *headers, struct ast_ari_mailboxes_delete_args *args, struct ast_ari_response *response) | 
| Destroy a mailbox. | |
| void | ast_ari_mailboxes_get (struct ast_variable *headers, struct ast_ari_mailboxes_get_args *args, struct ast_ari_response *response) | 
| Retrieve the current state of a mailbox. | |
| void | ast_ari_mailboxes_list (struct ast_variable *headers, struct ast_ari_mailboxes_list_args *args, struct ast_ari_response *response) | 
| List all mailboxes. | |
| void | ast_ari_mailboxes_update (struct ast_variable *headers, struct ast_ari_mailboxes_update_args *args, struct ast_ari_response *response) | 
| Change the state of a mailbox. (Note - implicitly creates the mailbox). | |
| int | ast_ari_mailboxes_update_parse_body (struct ast_json *body, struct ast_ari_mailboxes_update_args *args) | 
| Body parsing function for /mailboxes/{mailboxName}. | |
Generated file - declares stubs to be implemented in res/ari/resource_mailboxes.c.
Mailboxes resources
Definition in file resource_mailboxes.h.
| void ast_ari_mailboxes_delete | ( | struct ast_variable * | headers, | 
| struct ast_ari_mailboxes_delete_args * | args, | ||
| struct ast_ari_response * | response | ||
| ) | 
Destroy a mailbox.
| headers | HTTP headers | |
| args | Swagger parameters | |
| [out] | response | HTTP response | 
Definition at line 79 of file resource_mailboxes.c.
References args, ast_ari_response_error(), ast_ari_response_no_content(), stasis_app_mailbox_delete(), STASIS_MAILBOX_ERROR, STASIS_MAILBOX_MISSING, and STASIS_MAILBOX_OK.
Referenced by ast_ari_mailboxes_delete_cb().
| void ast_ari_mailboxes_get | ( | struct ast_variable * | headers, | 
| struct ast_ari_mailboxes_get_args * | args, | ||
| struct ast_ari_response * | response | ||
| ) | 
Retrieve the current state of a mailbox.
| headers | HTTP headers | |
| args | Swagger parameters | |
| [out] | response | HTTP response | 
Definition at line 49 of file resource_mailboxes.c.
References args, ast_ari_response_error(), ast_ari_response_ok(), stasis_app_mailbox_to_json(), STASIS_MAILBOX_ERROR, STASIS_MAILBOX_MISSING, and STASIS_MAILBOX_OK.
Referenced by ast_ari_mailboxes_get_cb().
| void ast_ari_mailboxes_list | ( | struct ast_variable * | headers, | 
| struct ast_ari_mailboxes_list_args * | args, | ||
| struct ast_ari_response * | response | ||
| ) | 
List all mailboxes.
| headers | HTTP headers | |
| args | Swagger parameters | |
| [out] | response | HTTP response | 
Definition at line 35 of file resource_mailboxes.c.
References ast_ari_response_error(), ast_ari_response_ok(), and stasis_app_mailboxes_to_json().
Referenced by ast_ari_mailboxes_list_cb().
| void ast_ari_mailboxes_update | ( | struct ast_variable * | headers, | 
| struct ast_ari_mailboxes_update_args * | args, | ||
| struct ast_ari_response * | response | ||
| ) | 
Change the state of a mailbox. (Note - implicitly creates the mailbox).
| headers | HTTP headers | |
| args | Swagger parameters | |
| [out] | response | HTTP response | 
Definition at line 68 of file resource_mailboxes.c.
References args, ast_ari_response_error(), ast_ari_response_no_content(), and stasis_app_mailbox_update().
Referenced by ast_ari_mailboxes_update_cb().
| int ast_ari_mailboxes_update_parse_body | ( | struct ast_json * | body, | 
| struct ast_ari_mailboxes_update_args * | args | ||
| ) | 
Body parsing function for /mailboxes/{mailboxName}.
| 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 166 of file res_ari_mailboxes.c.
References args, ast_json_integer_get(), and ast_json_object_get().
Referenced by ast_ari_mailboxes_update_cb().