[asterisk-commits] dlee: branch dlee/playback r387619 - in /team/dlee/playback/res: ./ stasis/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 3 14:45:45 CDT 2013


Author: dlee
Date: Fri May  3 14:45:43 2013
New Revision: 387619

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=387619
Log:
Better as a module

Added:
    team/dlee/playback/res/res_stasis_answer.c
      - copied, changed from r387618, team/dlee/playback/res/stasis/answer.c
Removed:
    team/dlee/playback/res/stasis/answer.c
Modified:
    team/dlee/playback/res/res_stasis_playback.c

Copied: team/dlee/playback/res/res_stasis_answer.c (from r387618, team/dlee/playback/res/stasis/answer.c)
URL: http://svnview.digium.com/svn/asterisk/team/dlee/playback/res/res_stasis_answer.c?view=diff&rev=387619&p1=team/dlee/playback/res/stasis/answer.c&r1=387618&p2=team/dlee/playback/res/res_stasis_answer.c&r2=387619
==============================================================================
--- team/dlee/playback/res/stasis/answer.c (original)
+++ team/dlee/playback/res/res_stasis_answer.c Fri May  3 14:45:43 2013
@@ -23,10 +23,16 @@
  * \author David M. Lee, II <dlee at digium.com>
  */
 
+/*** MODULEINFO
+	<depend type="module">res_stasis</depend>
+	<support_level>core</support_level>
+ ***/
+
 #include "asterisk.h"
 
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
+#include "asterisk/module.h"
 #include "asterisk/stasis_app_impl.h"
 
 static int OK = 0;
@@ -60,3 +66,18 @@
 	return 0;
 }
 
+static int load_module(void)
+{
+	return AST_MODULE_LOAD_SUCCESS;
+}
+
+static int unload_module(void)
+{
+	return 0;
+}
+
+AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS,
+	"Stasis application answer support",
+	.load = load_module,
+	.unload = unload_module,
+	.nonoptreq = "res_stasis");

Modified: team/dlee/playback/res/res_stasis_playback.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/playback/res/res_stasis_playback.c?view=diff&rev=387619&r1=387618&r2=387619
==============================================================================
--- team/dlee/playback/res/res_stasis_playback.c (original)
+++ team/dlee/playback/res/res_stasis_playback.c Fri May  3 14:45:43 2013
@@ -33,9 +33,9 @@
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
 #include "asterisk/astobj2.h"
+#include "asterisk/module.h"
 #include "asterisk/stasis_app_impl.h"
 #include "asterisk/stasis_app_playback.h"
-#include "asterisk/module.h"
 #include "asterisk/uuid.h"
 
 /*! Number of hash buckets for playback container. Keep it prime! */




More information about the asterisk-commits mailing list