19 #ifndef _ASTERISK_RES_STASIS_MESSAGING_H 20 #define _ASTERISK_RES_STASIS_MESSAGING_H int messaging_init(void)
Initialize the messaging layer.
int messaging_cleanup(void)
Tidy up the messaging layer.
int(* message_received_cb)(const char *endpoint_id, struct ast_json *json_msg, void *pvt)
Callback handler for when a message is received from the core.
const char * app_name(struct ast_app *app)
int messaging_app_subscribe_endpoint(const char *app_name, struct ast_endpoint *endpoint, message_received_cb callback, void *pvt)
Subscribe an application to an endpoint for messages.
Abstract JSON element (object, array, string, int, ...).
void messaging_app_unsubscribe_endpoint(const char *app_name, const char *endpoint_id)
Subscribe for messages from a particular endpoint.