Asterisk - The Open Source Telephony Project GIT-master-f36a736
Data Fields
stasis_message_vtable Struct Reference

Virtual table providing methods for messages. More...

#include <stasis.h>

Collaboration diagram for stasis_message_vtable:
Collaboration graph
[legend]

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...
 

Detailed Description

Virtual table providing methods for messages.

Since
12

Definition at line 239 of file stasis.h.

Field Documentation

◆ to_ami

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.

Parameters
messageMessage to convert to AMI string.
Returns
Newly allocated ast_manager_event_blob.
Return values
NULLif AMI format is not supported.

Definition at line 232 of file stasis.h.

Referenced by create_message_types(), and stasis_message_type_create().

◆ to_event

struct ast_event *(* to_event) (struct stasis_message *message)

Build the ast_event representation of the message.

Since
12.3.0

May be NULL, or may return NULL, to indicate no representation. The returned object should be free'd.

Parameters
messageMessage to convert to an ast_event.
Returns
Newly allocated ast_event.
Return values
NULLif AMI format is not supported.

Definition at line 232 of file stasis.h.

Referenced by create_message_types(), and stasis_message_type_create().

◆ to_json

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.

Parameters
messageMessage to convert to JSON string.
sanitizeSnapshot sanitization callback.
Returns
Newly allocated JSON message.
Return values
NULLif JSON format is not supported.

Definition at line 232 of file stasis.h.

Referenced by create_message_types(), and stasis_message_type_create().


The documentation for this struct was generated from the following file: