Asterisk - The Open Source Telephony Project
18.5.0
|
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. More... | |
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. More... | |
void | ast_ari_mailboxes_list (struct ast_variable *headers, struct ast_ari_mailboxes_list_args *args, struct ast_ari_response *response) |
List all mailboxes. More... | |
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). More... | |
int | ast_ari_mailboxes_update_parse_body (struct ast_json *body, struct ast_ari_mailboxes_update_args *args) |
Body parsing function for /mailboxes/{mailboxName}. More... | |
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 ast_ari_response_error(), ast_ari_response_no_content(), ast_ari_mailboxes_delete_args::mailbox_name, 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 ast_ari_response_error(), ast_ari_response_ok(), ast_ari_mailboxes_get_args::mailbox_name, 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 ast_ari_response_error(), ast_ari_response_no_content(), ast_ari_mailboxes_update_args::mailbox_name, ast_ari_mailboxes_update_args::new_messages, ast_ari_mailboxes_update_args::old_messages, 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 162 of file res_ari_mailboxes.c.
References ast_json_integer_get(), ast_json_object_get(), ast_ari_mailboxes_update_args::new_messages, and ast_ari_mailboxes_update_args::old_messages.
Referenced by ast_ari_mailboxes_update_cb().