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.
struct ast_event *(* to_event )(struct stasis_message *message)
 Build the ast_event representation of the message.
struct ast_json *(* to_json )(struct stasis_message *message, const struct stasis_message_sanitizer *sanitize)
 Build the JSON representation of the message.

Detailed Description

Virtual table providing methods for messages.

Since:
12

Definition at line 241 of file stasis.h.


Field Documentation

struct ast_json*(* to_json)(struct stasis_message *message, const struct stasis_message_sanitizer *sanitize) [read]

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:
message Message to convert to JSON string.
sanitize Snapshot sanitization callback.
Returns:
Newly allocated JSON message.

NULL on error.

NULL if JSON format is not supported.


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

Generated on Thu Apr 16 06:37:45 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6