diff options
author | Joshua Colp <jcolp@digium.com> | 2013-06-22 12:40:16 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2013-06-22 12:40:16 +0000 |
commit | 94ec267888e907862cab6c5e24163ca3a9a72070 (patch) | |
tree | 7fd73b66642e77ca85e09c397775cab1b62e11e8 /include/asterisk/stasis_endpoints.h | |
parent | 1267c91315f6850483022b4535beadbc0069b22e (diff) |
Migrate PeerStatus events to stasis, add stasis endpoints, and add chan_pjsip device state.
(closes issue ASTERISK-21489)
(closes issue ASTERISK-21503)
Review: https://reviewboard.asterisk.org/r/2601/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/stasis_endpoints.h')
-rw-r--r-- | include/asterisk/stasis_endpoints.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/asterisk/stasis_endpoints.h b/include/asterisk/stasis_endpoints.h index 10abcd77b..6d7f8dbaa 100644 --- a/include/asterisk/stasis_endpoints.h +++ b/include/asterisk/stasis_endpoints.h @@ -79,6 +79,45 @@ struct ast_endpoint_blob { }; /*! + * \since 12 + * \brief Creates a \ref ast_endpoint_blob message. + * + * The given \a blob should be treated as immutable and not modified after it is + * put into the message. + * + * \param endpoint Endpoint blob is associated with. + * \param type Message type for this blob. + * \param blob JSON object representing the data, or \c NULL for no data. If + * \c NULL, ast_json_null() is put into the object. + * + * \return \ref ast_endpoint_blob message. + * \return \c NULL on error + */ +struct stasis_message *ast_endpoint_blob_create(struct ast_endpoint *endpoint, + struct stasis_message_type *type, struct ast_json *blob); + +/*! + * \since 12 + * \brief Creates and publishes a \ref ast_endpoint_blob message. + * + * The given \a blob should be treated as immutable and not modified after it is + * put into the message. + * + * \param endpoint Endpoint blob is associated with. + * \param type Message type for this blob. + * \param blob JSON object representing the data, or \c NULL for no data. If + * \c NULL, ast_json_null() is put into the object. + */ +void ast_endpoint_blob_publish(struct ast_endpoint *endpoint, struct stasis_message_type *type, + struct ast_json *blob); + +/*! + * \brief Message type for endpoint state changes. + * \since 12 + */ +struct stasis_message_type *ast_endpoint_state_type(void); + +/*! * \brief Message type for \ref ast_endpoint_snapshot. * \since 12 */ |