X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=blobdiff_plain;f=include%2Fasterisk%2Fmanager.h;h=eebe0f886fc3ea37329f956b79b4dde80999f504;hp=6b1402bc35b0036b696a7b6134103c9ba8a162ff;hb=a1494300c935864074b000dc33590010c70e749b;hpb=39d5e40cd58c25f80759d1be9e5df945cf4e1da1 diff --git a/include/asterisk/manager.h b/include/asterisk/manager.h index 6b1402b..eebe0f8 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