use __cdecl calling convention for span_rx_handler_t and span_tx_handler_t type functions

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13509 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-05-29 18:59:44 +00:00
parent 72c680f005
commit 6ca400efcd
12 changed files with 12 additions and 12 deletions

View File

@ -333,7 +333,7 @@ static void report_status_change(fsk_rx_state_t *s, int status)
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/
SPAN_DECLARE(int) fsk_rx(fsk_rx_state_t *s, const int16_t *amp, int len) SPAN_DECLARE_NONSTD(int) fsk_rx(fsk_rx_state_t *s, const int16_t *amp, int len)
{ {
int buf_ptr; int buf_ptr;
int baudstate; int baudstate;

View File

@ -53,7 +53,7 @@
#include "spandsp/private/silence_gen.h" #include "spandsp/private/silence_gen.h"
SPAN_DECLARE(int) silence_gen(silence_gen_state_t *s, int16_t *amp, int max_len) SPAN_DECLARE_NONSTD(int) silence_gen(silence_gen_state_t *s, int16_t *amp, int max_len)
{ {
if (s->remaining_samples != INT_MAX) if (s->remaining_samples != INT_MAX)
{ {

View File

@ -214,7 +214,7 @@ SPAN_DECLARE(int) fsk_rx_free(fsk_rx_state_t *s);
\param len The number of samples in the buffer. \param len The number of samples in the buffer.
\return The number of samples unprocessed. \return The number of samples unprocessed.
*/ */
SPAN_DECLARE(int) fsk_rx(fsk_rx_state_t *s, const int16_t *amp, int len); SPAN_DECLARE_NONSTD(int) fsk_rx(fsk_rx_state_t *s, const int16_t *amp, int len);
/*! Fake processing of a missing block of received FSK modem audio samples /*! Fake processing of a missing block of received FSK modem audio samples
(e.g due to packet loss). (e.g due to packet loss).

View File

@ -43,7 +43,7 @@ extern "C"
\return The number of samples actually generated. This will be zero when \return The number of samples actually generated. This will be zero when
there is nothing to send. there is nothing to send.
*/ */
SPAN_DECLARE(int) silence_gen(silence_gen_state_t *s, int16_t *amp, int max_len); SPAN_DECLARE_NONSTD(int) silence_gen(silence_gen_state_t *s, int16_t *amp, int max_len);
/*! Set a silence generator context to output continuous silence. /*! Set a silence generator context to output continuous silence.
\brief Set a silence generator context to output continuous silence. \brief Set a silence generator context to output continuous silence.

View File

@ -297,7 +297,7 @@ SPAN_DECLARE(void) v17_rx_set_modem_status_handler(v17_rx_state_t *s, modem_rx_s
\param len The number of samples in the buffer. \param len The number of samples in the buffer.
\return The number of samples unprocessed. \return The number of samples unprocessed.
*/ */
SPAN_DECLARE(int) v17_rx(v17_rx_state_t *s, const int16_t amp[], int len); SPAN_DECLARE_NONSTD(int) v17_rx(v17_rx_state_t *s, const int16_t amp[], int len);
/*! Fake processing of a missing block of received V.17 modem audio samples. /*! Fake processing of a missing block of received V.17 modem audio samples.
(e.g due to packet loss). (e.g due to packet loss).

View File

@ -160,7 +160,7 @@ SPAN_DECLARE(void) v17_tx_set_modem_status_handler(v17_tx_state_t *s, modem_tx_s
\param len The number of samples to be generated. \param len The number of samples to be generated.
\return The number of samples actually generated. \return The number of samples actually generated.
*/ */
SPAN_DECLARE(int) v17_tx(v17_tx_state_t *s, int16_t amp[], int len); SPAN_DECLARE_NONSTD(int) v17_tx(v17_tx_state_t *s, int16_t amp[], int len);
#if defined(__cplusplus) #if defined(__cplusplus)
} }

View File

@ -131,7 +131,7 @@ SPAN_DECLARE(void) v27ter_rx_set_modem_status_handler(v27ter_rx_state_t *s, mode
\param len The number of samples in the buffer. \param len The number of samples in the buffer.
\return The number of samples unprocessed. \return The number of samples unprocessed.
*/ */
SPAN_DECLARE(int) v27ter_rx(v27ter_rx_state_t *s, const int16_t amp[], int len); SPAN_DECLARE_NONSTD(int) v27ter_rx(v27ter_rx_state_t *s, const int16_t amp[], int len);
/*! Fake processing of a missing block of received V.27ter modem audio samples. /*! Fake processing of a missing block of received V.27ter modem audio samples.
(e.g due to packet loss). (e.g due to packet loss).

View File

@ -198,7 +198,7 @@ SPAN_DECLARE(void) v29_rx_set_modem_status_handler(v29_rx_state_t *s, modem_rx_s
\param amp The audio sample buffer. \param amp The audio sample buffer.
\param len The number of samples in the buffer. \param len The number of samples in the buffer.
\return The number of samples unprocessed. */ \return The number of samples unprocessed. */
SPAN_DECLARE(int) v29_rx(v29_rx_state_t *s, const int16_t amp[], int len); SPAN_DECLARE_NONSTD(int) v29_rx(v29_rx_state_t *s, const int16_t amp[], int len);
/*! Fake processing of a missing block of received V.29 modem audio samples. /*! Fake processing of a missing block of received V.29 modem audio samples.
(e.g due to packet loss). (e.g due to packet loss).

View File

@ -1008,7 +1008,7 @@ static void process_half_baud(v17_rx_state_t *s, const complexf_t *sample)
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/
SPAN_DECLARE(int) v17_rx(v17_rx_state_t *s, const int16_t amp[], int len) SPAN_DECLARE_NONSTD(int) v17_rx(v17_rx_state_t *s, const int16_t amp[], int len)
{ {
int i; int i;
int step; int step;

View File

@ -260,7 +260,7 @@ static __inline__ complexf_t getbaud(v17_tx_state_t *s)
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/
SPAN_DECLARE(int) v17_tx(v17_tx_state_t *s, int16_t amp[], int len) SPAN_DECLARE_NONSTD(int) v17_tx(v17_tx_state_t *s, int16_t amp[], int len)
{ {
#if defined(SPANDSP_USE_FIXED_POINT) #if defined(SPANDSP_USE_FIXED_POINT)
complexi_t x; complexi_t x;

View File

@ -753,7 +753,7 @@ static __inline__ void process_half_baud(v27ter_rx_state_t *s, const complexf_t
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/
SPAN_DECLARE(int) v27ter_rx(v27ter_rx_state_t *s, const int16_t amp[], int len) SPAN_DECLARE_NONSTD(int) v27ter_rx(v27ter_rx_state_t *s, const int16_t amp[], int len)
{ {
int i; int i;
int step; int step;

View File

@ -841,7 +841,7 @@ static void process_half_baud(v29_rx_state_t *s, complexf_t *sample)
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/
SPAN_DECLARE(int) v29_rx(v29_rx_state_t *s, const int16_t amp[], int len) SPAN_DECLARE_NONSTD(int) v29_rx(v29_rx_state_t *s, const int16_t amp[], int len)
{ {
int i; int i;
int step; int step;