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 */
}
/* 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;
}
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:
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);
} 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,
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())) {