19#ifndef _ASTERISK_RES_STASIS_MESSAGING_H
20#define _ASTERISK_RES_STASIS_MESSAGING_H
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.
int messaging_init(void)
Initialize the messaging layer.
void messaging_app_unsubscribe_endpoint(const char *app_name, const char *endpoint_id)
Subscribe for messages from a particular endpoint.
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.
int messaging_cleanup(void)
Tidy up the messaging layer.
const char * app_name(struct ast_app *app)
Abstract JSON element (object, array, string, int, ...).