[asterisk-commits] qwell: branch qwell/queue_events r390121 - in /team/qwell/queue_events: inclu...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu May 30 11:46:49 CDT 2013


Author: qwell
Date: Thu May 30 11:46:48 2013
New Revision: 390121

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=390121
Log:
Remove ast_manager_publish_event() - this will be added elsewhere (and isn't actually needed here).

Modified:
    team/qwell/queue_events/include/asterisk/manager.h
    team/qwell/queue_events/main/manager.c

Modified: team/qwell/queue_events/include/asterisk/manager.h
URL: http://svnview.digium.com/svn/asterisk/team/qwell/queue_events/include/asterisk/manager.h?view=diff&rev=390121&r1=390120&r2=390121
==============================================================================
--- team/qwell/queue_events/include/asterisk/manager.h (original)
+++ team/qwell/queue_events/include/asterisk/manager.h Thu May 30 11:46:48 2013
@@ -475,19 +475,6 @@
 
 /*!
  * \since 12
- * \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.
- *
- * \retval 0 on success
- * \retval -1 on failure
- */
-int ast_manager_publish_event(const char *type, int class_type, struct ast_json *obj);
-
-/*!
- * \since 12
  * \brief Publish a generic \ref stasis_message_type to the \ref stasis_topic for AMI
  *
  * Publishes a message to the \ref stasis message bus solely for the consumption of AMI.

Modified: team/qwell/queue_events/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/team/qwell/queue_events/main/manager.c?view=diff&rev=390121&r1=390120&r2=390121
==============================================================================
--- team/qwell/queue_events/main/manager.c (original)
+++ team/qwell/queue_events/main/manager.c Thu May 30 11:46:48 2013
@@ -1310,18 +1310,6 @@
 		return;
 	}
 	manager_event(class_type, type, "%s", ast_str_buffer(event_buffer));
-}
-
-int ast_manager_publish_event(const char *type, int class_type, struct ast_json *obj)
-{
-	RAII_VAR(struct ast_json *, event_info, NULL, ast_json_unref);
-
-	event_info = ast_json_pack("{s: s, s: i, s: o}",
-			"type", type,
-			"class_type", class_type,
-			"event", obj);
-
-	return ast_manager_publish_message(obj);
 }
 
 int ast_manager_publish_message(struct ast_json *obj)




More information about the asterisk-commits mailing list