[asterisk-commits] russell: trunk r299133 - in /trunk/addons: chan_mobile.c chan_ooh323.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 20 17:49:24 UTC 2010


Author: russell
Date: Mon Dec 20 11:49:20 2010
New Revision: 299133

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=299133
Log:
Fix some build errors in addons due to sched API changes.

Modified:
    trunk/addons/chan_mobile.c
    trunk/addons/chan_ooh323.c

Modified: trunk/addons/chan_mobile.c
URL: http://svnview.digium.com/svn/asterisk/trunk/addons/chan_mobile.c?view=diff&rev=299133&r1=299132&r2=299133
==============================================================================
--- trunk/addons/chan_mobile.c (original)
+++ trunk/addons/chan_mobile.c Mon Dec 20 11:49:20 2010
@@ -136,7 +136,7 @@
 	int alignment_count;
 	int ring_sched_id;
 	struct ast_dsp *dsp;
-	struct sched_context *sched;
+	struct ast_sched_context *sched;
 
 	/* flags */
 	unsigned int outgoing:1;	/*!< outgoing call */
@@ -4324,7 +4324,7 @@
 	}
 
 	/* setup the scheduler */
-	if (!(pvt->sched = sched_context_create())) {
+	if (!(pvt->sched = ast_sched_context_create())) {
 		ast_log(LOG_ERROR, "Unable to create scheduler context for headset device\n");
 		goto e_free_dsp;
 	}
@@ -4377,7 +4377,7 @@
 	return pvt;
 
 e_free_sched:
-	sched_context_destroy(pvt->sched);
+	ast_sched_context_destroy(pvt->sched);
 e_free_dsp:
 	ast_dsp_free(pvt->dsp);
 e_free_smoother:
@@ -4515,7 +4515,7 @@
 
 		ast_smoother_free(pvt->smoother);
 		ast_dsp_free(pvt->dsp);
-		sched_context_destroy(pvt->sched);
+		ast_sched_context_destroy(pvt->sched);
 		ast_free(pvt);
 	}
 	AST_RWLIST_UNLOCK(&devices);

Modified: trunk/addons/chan_ooh323.c
URL: http://svnview.digium.com/svn/asterisk/trunk/addons/chan_ooh323.c?view=diff&rev=299133&r1=299132&r2=299133
==============================================================================
--- trunk/addons/chan_ooh323.c (original)
+++ trunk/addons/chan_ooh323.c Mon Dec 20 11:49:20 2010
@@ -323,7 +323,7 @@
 } ooconfig;
 
 /** Asterisk RTP stuff*/
-static struct sched_context *sched;
+static struct ast_sched_context *sched;
 static struct io_context *io;
 
 /* Protect the monitoring thread, so only one process can kill or start it, 
@@ -3235,7 +3235,7 @@
 	ast_register_atexit(&ast_ooh323c_exit);
 #endif
 
-	if (!(sched = sched_context_create())) {
+	if (!(sched = ast_sched_context_create())) {
 		ast_log(LOG_WARNING, "Unable to create schedule context\n");
 	}
 	if (!(io = io_context_create())) {




More information about the asterisk-commits mailing list