mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Fix some build errors in addons due to sched API changes.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@299133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -136,7 +136,7 @@ struct mbl_pvt {
|
|||||||
int alignment_count;
|
int alignment_count;
|
||||||
int ring_sched_id;
|
int ring_sched_id;
|
||||||
struct ast_dsp *dsp;
|
struct ast_dsp *dsp;
|
||||||
struct sched_context *sched;
|
struct ast_sched_context *sched;
|
||||||
|
|
||||||
/* flags */
|
/* flags */
|
||||||
unsigned int outgoing:1; /*!< outgoing call */
|
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 */
|
/* 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");
|
ast_log(LOG_ERROR, "Unable to create scheduler context for headset device\n");
|
||||||
goto e_free_dsp;
|
goto e_free_dsp;
|
||||||
}
|
}
|
||||||
@@ -4377,7 +4377,7 @@ static struct mbl_pvt *mbl_load_device(struct ast_config *cfg, const char *cat)
|
|||||||
return pvt;
|
return pvt;
|
||||||
|
|
||||||
e_free_sched:
|
e_free_sched:
|
||||||
sched_context_destroy(pvt->sched);
|
ast_sched_context_destroy(pvt->sched);
|
||||||
e_free_dsp:
|
e_free_dsp:
|
||||||
ast_dsp_free(pvt->dsp);
|
ast_dsp_free(pvt->dsp);
|
||||||
e_free_smoother:
|
e_free_smoother:
|
||||||
@@ -4515,7 +4515,7 @@ static int unload_module(void)
|
|||||||
|
|
||||||
ast_smoother_free(pvt->smoother);
|
ast_smoother_free(pvt->smoother);
|
||||||
ast_dsp_free(pvt->dsp);
|
ast_dsp_free(pvt->dsp);
|
||||||
sched_context_destroy(pvt->sched);
|
ast_sched_context_destroy(pvt->sched);
|
||||||
ast_free(pvt);
|
ast_free(pvt);
|
||||||
}
|
}
|
||||||
AST_RWLIST_UNLOCK(&devices);
|
AST_RWLIST_UNLOCK(&devices);
|
||||||
|
@@ -323,7 +323,7 @@ static struct ooh323_config
|
|||||||
} ooconfig;
|
} ooconfig;
|
||||||
|
|
||||||
/** Asterisk RTP stuff*/
|
/** Asterisk RTP stuff*/
|
||||||
static struct sched_context *sched;
|
static struct ast_sched_context *sched;
|
||||||
static struct io_context *io;
|
static struct io_context *io;
|
||||||
|
|
||||||
/* Protect the monitoring thread, so only one process can kill or start it,
|
/* Protect the monitoring thread, so only one process can kill or start it,
|
||||||
@@ -3235,7 +3235,7 @@ static int load_module(void)
|
|||||||
ast_register_atexit(&ast_ooh323c_exit);
|
ast_register_atexit(&ast_ooh323c_exit);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!(sched = sched_context_create())) {
|
if (!(sched = ast_sched_context_create())) {
|
||||||
ast_log(LOG_WARNING, "Unable to create schedule context\n");
|
ast_log(LOG_WARNING, "Unable to create schedule context\n");
|
||||||
}
|
}
|
||||||
if (!(io = io_context_create())) {
|
if (!(io = io_context_create())) {
|
||||||
|
Reference in New Issue
Block a user