diff options
author | Jason Parker <jparker@digium.com> | 2013-05-31 14:36:08 +0000 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2013-05-31 14:36:08 +0000 |
commit | a1494300c935864074b000dc33590010c70e749b (patch) | |
tree | 655a48dc420635d4ff9b43d5015acd7fec0ed638 /include/asterisk | |
parent | 39d5e40cd58c25f80759d1be9e5df945cf4e1da1 (diff) |
Replace ast_manager_publish_message() with a more useful version.
It's much easier to just create a blob of the message. Convert some AMI events
to use it.
Review: https://reviewboard.asterisk.org/r/2577/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@390268 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/manager.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/asterisk/manager.h b/include/asterisk/manager.h index 6b1402bc3..eebe0f886 100644 --- a/include/asterisk/manager.h +++ b/include/asterisk/manager.h @@ -475,17 +475,18 @@ struct ast_json; /*! * \since 12 - * \brief Publish a generic \ref stasis_message_type to the \ref stasis_topic for AMI + * \brief Publish an event to AMI + * + * \param type The type of AMI event to publish + * \param class_type The class on which to publish the event + * \param obj The event data to be published. * * Publishes a message to the \ref stasis message bus solely for the consumption of AMI. * The message will be of the type provided by \ref ast_manager_get_type, and will be * published to the topic provided by \ref ast_manager_get_topic. As such, the JSON must * be constructed as defined by the \ref ast_manager_get_type message. - * - * \retval 0 on success - * \retval -1 on failure */ -int ast_manager_publish_message(struct ast_json *json); +void ast_manager_publish_event(const char *type, int class_type, struct ast_json *obj); /*! * \since 12 |