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:
Michael Jerris 2006-03-31 16:10:00 +00:00
parent 215a1b2a1f
commit 74d14b25f7
8 changed files with 12 additions and 17 deletions

View File

@ -299,7 +299,7 @@ SWITCH_DECLARE(switch_status) switch_channel_queue_dtmf(switch_channel *channel,
\param len max size in bytes of 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

View File

@ -433,7 +433,7 @@ struct switch_codec_implementation {
/*! max number of frames to send in one network packet */
int max_frames_per_packet;
/*! 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 */
switch_status (*encode)(switch_codec *codec,
switch_codec *other_codec,

View File

@ -59,8 +59,9 @@ extern "C" {
* C4200: Non standard extension C zero sized array
* C4204: nonstandard extension used : non-constant aggregate initializer
* 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+
#ifndef _CRT_SECURE_NO_DEPRECATE

View File

@ -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)
{
switch_status status;
if (switch_strlen_zero(timer_name)) {
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;
}

View File

@ -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;
assert(channel != NULL);

View File

@ -500,7 +500,7 @@ SWITCH_DECLARE(switch_status) switch_ivr_speak_text(switch_core_session *session
switch_status status = SWITCH_STATUS_SUCCESS;
switch_speech_handle sh;
uint32_t flags = SWITCH_SPEECH_FLAG_TTS;
switch_speech_flag flags = SWITCH_SPEECH_FLAG_TTS;
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;
void *user_data;
assert(!thread || thread);
switch_channel *chan_a, *chan_b;
switch_frame *read_frame;
switch_core_session *session_a, *session_b;
assert(!thread || thread);
session_a = data->objs[0];
session_b = data->objs[1];

View File

@ -73,13 +73,13 @@ static struct switch_loadable_module_container loadable_modules;
static void *switch_loadable_module_exec(switch_thread *thread, void *obj)
{
assert(thread != NULL);
switch_status status = SWITCH_STATUS_SUCCESS;
switch_core_thread_session *ts = obj;
switch_loadable_module *module = ts->objs[0];
int restarts;
assert(thread != NULL);
assert(module != NULL);
for (restarts = 0; status != SWITCH_STATUS_TERM; restarts++) {

View File

@ -231,10 +231,6 @@
RelativePath="..\..\src\switch_loadable_module.c"
>
</File>
<File
RelativePath="..\..\src\switch_mutex.c"
>
</File>
<File
RelativePath="..\..\src\switch_resample.c"
>
@ -301,10 +297,6 @@
RelativePath="..\..\src\include\switch_module_interfaces.h"
>
</File>
<File
RelativePath="..\..\src\include\switch_mutex.h"
>
</File>
<File
RelativePath="..\..\src\include\switch_platform.h"
>