Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Virtual table providing methods for messages. More...
#include <stasis.h>
Data Fields | |
struct ast_manager_event_blob *(* | to_ami )(struct stasis_message *message) |
Build the AMI representation of the message. More... | |
struct ast_event *(* | to_event )(struct stasis_message *message) |
Build the ast_event representation of the message. More... | |
struct ast_json *(* | to_json )(struct stasis_message *message, const struct stasis_message_sanitizer *sanitize) |
Build the JSON representation of the message. More... | |
struct ast_manager_event_blob *(* to_ami) (struct stasis_message *message) |
Build the AMI representation of the message.
May be NULL
, or may return NULL
, to indicate no representation. The returned object should be ao2_cleanup()'ed.
message | Message to convert to AMI string. |
NULL | if AMI format is not supported. |
Definition at line 232 of file stasis.h.
Referenced by create_message_types(), and stasis_message_type_create().
struct ast_event *(* to_event) (struct stasis_message *message) |
Build the ast_event representation of the message.
May be NULL
, or may return NULL
, to indicate no representation. The returned object should be free'd.
message | Message to convert to an ast_event. |
NULL | if AMI format is not supported. |
Definition at line 232 of file stasis.h.
Referenced by create_message_types(), and stasis_message_type_create().
struct ast_json *(* to_json) (struct stasis_message *message, const struct stasis_message_sanitizer *sanitize) |
Build the JSON representation of the message.
May be NULL
, or may return NULL
, to indicate no representation. The returned object should be ast_json_unref()'ed.
message | Message to convert to JSON string. |
sanitize | Snapshot sanitization callback. |
NULL | if JSON format is not supported. |
Definition at line 232 of file stasis.h.
Referenced by create_message_types(), and stasis_message_type_create().