switch_state_handler_table renames and msvc build fix.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@557 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
c5c74474ba
commit
ed310c8d33
|
@ -741,7 +741,7 @@ static switch_status channel_answer_channel(switch_core_session *session)
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const switch_event_handler_table channel_event_handlers = {
|
static const switch_state_handler_table channel_event_handlers = {
|
||||||
/*.on_init */ channel_on_init,
|
/*.on_init */ channel_on_init,
|
||||||
/*.on_ring */ channel_on_ring,
|
/*.on_ring */ channel_on_ring,
|
||||||
/*.on_execute */ channel_on_execute,
|
/*.on_execute */ channel_on_execute,
|
||||||
|
|
|
@ -486,7 +486,7 @@ static struct switch_api_interface channel_api_interface = {
|
||||||
/*.next */ &channel_hup_interface
|
/*.next */ &channel_hup_interface
|
||||||
};
|
};
|
||||||
|
|
||||||
static const switch_event_handler_table channel_event_handlers = {
|
static const switch_state_handler_table channel_event_handlers = {
|
||||||
/*.on_init */ channel_on_init,
|
/*.on_init */ channel_on_init,
|
||||||
/*.on_ring */ channel_on_ring,
|
/*.on_ring */ channel_on_ring,
|
||||||
/*.on_execute */ channel_on_execute,
|
/*.on_execute */ channel_on_execute,
|
||||||
|
|
|
@ -476,7 +476,7 @@ static switch_status woomerachan_write_frame(switch_core_session *session, switc
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const switch_event_handler_table woomerachan_event_handlers = {
|
static const switch_state_handler_table woomerachan_event_handlers = {
|
||||||
/*.on_init */ woomerachan_on_init,
|
/*.on_init */ woomerachan_on_init,
|
||||||
/*.on_ring */ woomerachan_on_ring,
|
/*.on_ring */ woomerachan_on_ring,
|
||||||
/*.on_execute */ woomerachan_on_execute,
|
/*.on_execute */ woomerachan_on_execute,
|
||||||
|
|
|
@ -488,8 +488,10 @@ SWITCH_DECLARE(switch_caller_profile *) switch_channel_get_originatee_caller_pro
|
||||||
SWITCH_DECLARE(int) switch_channel_add_state_handler(switch_channel *channel,
|
SWITCH_DECLARE(int) switch_channel_add_state_handler(switch_channel *channel,
|
||||||
const switch_state_handler_table *state_handler)
|
const switch_state_handler_table *state_handler)
|
||||||
{
|
{
|
||||||
|
int index;
|
||||||
|
|
||||||
assert(channel != NULL);
|
assert(channel != NULL);
|
||||||
int index = channel->state_handler_index++;
|
index = channel->state_handler_index++;
|
||||||
|
|
||||||
if (channel->state_handler_index >= SWITCH_MAX_STATE_HANDLERS) {
|
if (channel->state_handler_index >= SWITCH_MAX_STATE_HANDLERS) {
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue