tweak to repair some damage from icc tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@992 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
215a1b2a1f
commit
74d14b25f7
|
@ -299,7 +299,7 @@ SWITCH_DECLARE(switch_status) switch_channel_queue_dtmf(switch_channel *channel,
|
||||||
\param len max size in bytes of the buffer
|
\param len max size in bytes of the buffer
|
||||||
\return number of bytes read into the buffer
|
\return number of bytes read into the buffer
|
||||||
*/
|
*/
|
||||||
SWITCH_DECLARE(int) switch_channel_dequeue_dtmf(switch_channel *channel, char *dtmf, switch_size_t len);
|
SWITCH_DECLARE(switch_size_t) switch_channel_dequeue_dtmf(switch_channel *channel, char *dtmf, switch_size_t len);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Render the name of the provided state enum
|
\brief Render the name of the provided state enum
|
||||||
|
|
|
@ -433,7 +433,7 @@ struct switch_codec_implementation {
|
||||||
/*! max number of frames to send in one network packet */
|
/*! max number of frames to send in one network packet */
|
||||||
int max_frames_per_packet;
|
int max_frames_per_packet;
|
||||||
/*! function to initialize a codec handle using this implementation */
|
/*! function to initialize a codec handle using this implementation */
|
||||||
switch_status (*init)(switch_codec *, uint32_t, const switch_codec_settings *codec_settings);
|
switch_status (*init)(switch_codec *, switch_codec_flag, const switch_codec_settings *codec_settings);
|
||||||
/*! function to encode raw data into encoded data */
|
/*! function to encode raw data into encoded data */
|
||||||
switch_status (*encode)(switch_codec *codec,
|
switch_status (*encode)(switch_codec *codec,
|
||||||
switch_codec *other_codec,
|
switch_codec *other_codec,
|
||||||
|
|
|
@ -59,8 +59,9 @@ extern "C" {
|
||||||
* C4200: Non standard extension C zero sized array
|
* C4200: Non standard extension C zero sized array
|
||||||
* C4204: nonstandard extension used : non-constant aggregate initializer
|
* C4204: nonstandard extension used : non-constant aggregate initializer
|
||||||
* C4706: assignment within conditional expression
|
* C4706: assignment within conditional expression
|
||||||
|
* C4055: type cast from data pointer to function pointer (apr carries function pointers as data pointers)
|
||||||
*/
|
*/
|
||||||
#pragma warning(disable:4152 4054 4100 4142 4200 4204 4706)
|
#pragma warning(disable:4152 4054 4100 4142 4200 4204 4706 4055)
|
||||||
|
|
||||||
#if (_MSC_VER >= 1400) // VC8+
|
#if (_MSC_VER >= 1400) // VC8+
|
||||||
#ifndef _CRT_SECURE_NO_DEPRECATE
|
#ifndef _CRT_SECURE_NO_DEPRECATE
|
||||||
|
|
|
@ -115,11 +115,12 @@ void fs_channel_set_state(struct switch_core_session *session, char *state)
|
||||||
|
|
||||||
int fs_ivr_play_file(struct switch_core_session *session, char *file, char *timer_name)
|
int fs_ivr_play_file(struct switch_core_session *session, char *file, char *timer_name)
|
||||||
{
|
{
|
||||||
|
switch_status status;
|
||||||
if (switch_strlen_zero(timer_name)) {
|
if (switch_strlen_zero(timer_name)) {
|
||||||
timer_name = NULL;
|
timer_name = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_status status = switch_ivr_play_file(session, NULL, file, timer_name, NULL, NULL, 0);
|
status = switch_ivr_play_file(session, NULL, file, timer_name, NULL, NULL, 0);
|
||||||
return status == SWITCH_STATUS_SUCCESS ? 1 : 0;
|
return status == SWITCH_STATUS_SUCCESS ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -150,9 +150,9 @@ SWITCH_DECLARE(switch_status) switch_channel_queue_dtmf(switch_channel *channel,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SWITCH_DECLARE(int) switch_channel_dequeue_dtmf(switch_channel *channel, char *dtmf, switch_size_t len)
|
SWITCH_DECLARE(switch_size_t) switch_channel_dequeue_dtmf(switch_channel *channel, char *dtmf, switch_size_t len)
|
||||||
{
|
{
|
||||||
int bytes;
|
switch_size_t bytes;
|
||||||
switch_event *event;
|
switch_event *event;
|
||||||
|
|
||||||
assert(channel != NULL);
|
assert(channel != NULL);
|
||||||
|
|
|
@ -500,7 +500,7 @@ SWITCH_DECLARE(switch_status) switch_ivr_speak_text(switch_core_session *session
|
||||||
|
|
||||||
switch_status status = SWITCH_STATUS_SUCCESS;
|
switch_status status = SWITCH_STATUS_SUCCESS;
|
||||||
switch_speech_handle sh;
|
switch_speech_handle sh;
|
||||||
uint32_t flags = SWITCH_SPEECH_FLAG_TTS;
|
switch_speech_flag flags = SWITCH_SPEECH_FLAG_TTS;
|
||||||
|
|
||||||
|
|
||||||
memset(&sh, 0, sizeof(sh));
|
memset(&sh, 0, sizeof(sh));
|
||||||
|
@ -691,11 +691,12 @@ static void *audio_bridge_thread(switch_thread *thread, void *obj)
|
||||||
switch_dtmf_callback_function dtmf_callback;
|
switch_dtmf_callback_function dtmf_callback;
|
||||||
void *user_data;
|
void *user_data;
|
||||||
|
|
||||||
assert(!thread || thread);
|
|
||||||
switch_channel *chan_a, *chan_b;
|
switch_channel *chan_a, *chan_b;
|
||||||
switch_frame *read_frame;
|
switch_frame *read_frame;
|
||||||
switch_core_session *session_a, *session_b;
|
switch_core_session *session_a, *session_b;
|
||||||
|
|
||||||
|
assert(!thread || thread);
|
||||||
|
|
||||||
session_a = data->objs[0];
|
session_a = data->objs[0];
|
||||||
session_b = data->objs[1];
|
session_b = data->objs[1];
|
||||||
|
|
||||||
|
|
|
@ -73,13 +73,13 @@ static struct switch_loadable_module_container loadable_modules;
|
||||||
static void *switch_loadable_module_exec(switch_thread *thread, void *obj)
|
static void *switch_loadable_module_exec(switch_thread *thread, void *obj)
|
||||||
{
|
{
|
||||||
|
|
||||||
assert(thread != NULL);
|
|
||||||
|
|
||||||
switch_status status = SWITCH_STATUS_SUCCESS;
|
switch_status status = SWITCH_STATUS_SUCCESS;
|
||||||
switch_core_thread_session *ts = obj;
|
switch_core_thread_session *ts = obj;
|
||||||
switch_loadable_module *module = ts->objs[0];
|
switch_loadable_module *module = ts->objs[0];
|
||||||
int restarts;
|
int restarts;
|
||||||
|
|
||||||
|
assert(thread != NULL);
|
||||||
assert(module != NULL);
|
assert(module != NULL);
|
||||||
|
|
||||||
for (restarts = 0; status != SWITCH_STATUS_TERM; restarts++) {
|
for (restarts = 0; status != SWITCH_STATUS_TERM; restarts++) {
|
||||||
|
|
|
@ -231,10 +231,6 @@
|
||||||
RelativePath="..\..\src\switch_loadable_module.c"
|
RelativePath="..\..\src\switch_loadable_module.c"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath="..\..\src\switch_mutex.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\src\switch_resample.c"
|
RelativePath="..\..\src\switch_resample.c"
|
||||||
>
|
>
|
||||||
|
@ -301,10 +297,6 @@
|
||||||
RelativePath="..\..\src\include\switch_module_interfaces.h"
|
RelativePath="..\..\src\include\switch_module_interfaces.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath="..\..\src\include\switch_mutex.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\src\include\switch_platform.h"
|
RelativePath="..\..\src\include\switch_platform.h"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue