[asterisk-commits] dlee: branch dlee/stasis-app r381813 - in /team/dlee/stasis-app: include/aste...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Feb 19 17:18:45 CST 2013
Author: dlee
Date: Tue Feb 19 17:18:42 2013
New Revision: 381813
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=381813
Log:
cleanup
Modified:
team/dlee/stasis-app/include/asterisk/app_stasis.h
team/dlee/stasis-app/tests/test_app_stasis.c
Modified: team/dlee/stasis-app/include/asterisk/app_stasis.h
URL: http://svnview.digium.com/svn/asterisk/team/dlee/stasis-app/include/asterisk/app_stasis.h?view=diff&rev=381813&r1=381812&r2=381813
==============================================================================
--- team/dlee/stasis-app/include/asterisk/app_stasis.h (original)
+++ team/dlee/stasis-app/include/asterisk/app_stasis.h Tue Feb 19 17:18:42 2013
@@ -34,24 +34,6 @@
/*! \brief Handler for controlling app_stasis */
struct stasis_app_handler;
-
-/*!
- * \brief Returns the handler for the given channel
- * \param chan Channel to handle.
- * \return NULL channel not in Stasis application
- * \return Pointer to app_stasis handler.
- */
-struct stasis_app_handler *stasis_app_find_by_channel(struct ast_channel *chan);
-
-/*!
- * \brief Exit app_stasis and continue execution in the dialplan
- * \param handler Handler for app_stasis
- * \return 0 on Success
- * \return Non-zero on error
- */
-void stasis_app_continue(struct stasis_app_handler *handler);
-
-void stasis_app_handler_unref(struct stasis_app_handler *handler);
/*!
* \brief Send a message to the given Stasis application.
Modified: team/dlee/stasis-app/tests/test_app_stasis.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/stasis-app/tests/test_app_stasis.c?view=diff&rev=381813&r1=381812&r2=381813
==============================================================================
--- team/dlee/stasis-app/tests/test_app_stasis.c (original)
+++ team/dlee/stasis-app/tests/test_app_stasis.c Tue Feb 19 17:18:42 2013
@@ -17,7 +17,7 @@
*/
/*!
- * \file \brief Test Stasis Core API.
+ * \file \brief Test Stasis Application API.
* \author\verbatim David M. Lee, II <dlee at digium.com> \endverbatim
*
* \ingroup tests
@@ -113,7 +113,7 @@
app_data = app_data_create();
stasis_app_register(app_name, test_handler, app_data);
- message = ast_json_pack("{s: s}", "test", "message");
+ message = stasis_app_event_create("test-message", NULL, NULL);
expected_message = ast_json_pack("[o]", ast_json_ref(message));
res = stasis_app_send(app_name, message);
@@ -152,7 +152,7 @@
stasis_app_register(app_name, test_handler, app_data1);
stasis_app_register(app_name, test_handler, app_data2);
expected_message1 = ast_json_pack("[{s: s}]", "event", "application-replaced");
- message = ast_json_pack("{s, s}", "test", "message");
+ message = stasis_app_event_create("test-message", NULL, NULL);
expected_message2 = ast_json_pack("[o]", ast_json_ref(message));
res = stasis_app_send(app_name, message);
More information about the asterisk-commits
mailing list