mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Move presence state distribution to Stasis-core
Convert presence state events to Stasis-core messages and remove redundant serializers where possible. Review: https://reviewboard.asterisk.org/r/2410/ (closes issue ASTERISK-21102) Patch-by: Kinsey Moore <kmoore@digium.com> git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@385862 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -149,6 +149,40 @@ int ast_presence_state_prov_add(const char *label, ast_presence_state_prov_cb_ty
|
||||
*/
|
||||
int ast_presence_state_prov_del(const char *label);
|
||||
|
||||
/*!
|
||||
* \brief Get presence state message type
|
||||
* \retval Stasis message type for presence state messages
|
||||
* \since 12
|
||||
*/
|
||||
struct stasis_message_type *ast_presence_state_message_type(void);
|
||||
|
||||
/*!
|
||||
* \brief Get presence state topic
|
||||
* \retval Stasis topic for presence state messages
|
||||
* \since 12
|
||||
*/
|
||||
struct stasis_topic *ast_presence_state_topic_all(void);
|
||||
|
||||
/*!
|
||||
* \brief Get caching presence state topic
|
||||
* \retval Caching Stasis topic for presence state messages
|
||||
* \since 12
|
||||
*/
|
||||
struct stasis_caching_topic *ast_presence_state_topic_cached(void);
|
||||
|
||||
/*!
|
||||
* \brief Stasis message payload representing a presence state update
|
||||
* \since 12
|
||||
*/
|
||||
struct ast_presence_state_message {
|
||||
AST_DECLARE_STRING_FIELDS(
|
||||
AST_STRING_FIELD(provider); /*!< Provider that produced this presence state message */
|
||||
AST_STRING_FIELD(subtype); /*!< Subtype associated with this presence state message */
|
||||
AST_STRING_FIELD(message); /*!< The message to convey */
|
||||
);
|
||||
enum ast_presence_state state; /*!< The state associated with this presence state message */
|
||||
};
|
||||
|
||||
int ast_presence_state_engine_init(void);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user