diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-12-20 17:49:20 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-12-20 17:49:20 +0000 |
commit | c740b8463245a59c7fd2465384d75ce3af604ece (patch) | |
tree | 9d1da85f511f6236d4100709e72e2de0e6fe88f3 /addons/chan_mobile.c | |
parent | a7bc997200666c9c4d0219ec72c30929fa870689 (diff) |
Fix some build errors in addons due to sched API changes.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@299133 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'addons/chan_mobile.c')
-rw-r--r-- | addons/chan_mobile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/chan_mobile.c b/addons/chan_mobile.c index dbe20ee0a..29d14e036 100644 --- a/addons/chan_mobile.c +++ b/addons/chan_mobile.c @@ -136,7 +136,7 @@ struct mbl_pvt { 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 @@ static struct mbl_pvt *mbl_load_device(struct ast_config *cfg, const char *cat) } /* 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 @@ static struct mbl_pvt *mbl_load_device(struct ast_config *cfg, const char *cat) 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 @@ static int unload_module(void) 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); |