提交 6ca400ef authored 作者: Michael Jerris's avatar Michael Jerris

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
上级 72c680f0
...@@ -333,7 +333,7 @@ static void report_status_change(fsk_rx_state_t *s, int status) ...@@ -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;
......
...@@ -53,7 +53,7 @@ ...@@ -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)
{ {
......
...@@ -214,7 +214,7 @@ SPAN_DECLARE(int) fsk_rx_free(fsk_rx_state_t *s); ...@@ -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).
......
...@@ -43,7 +43,7 @@ extern "C" ...@@ -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.
......
...@@ -297,7 +297,7 @@ SPAN_DECLARE(void) v17_rx_set_modem_status_handler(v17_rx_state_t *s, modem_rx_s ...@@ -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).
......
...@@ -160,7 +160,7 @@ SPAN_DECLARE(void) v17_tx_set_modem_status_handler(v17_tx_state_t *s, modem_tx_s ...@@ -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)
} }
......
...@@ -131,7 +131,7 @@ SPAN_DECLARE(void) v27ter_rx_set_modem_status_handler(v27ter_rx_state_t *s, mode ...@@ -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).
......
...@@ -198,7 +198,7 @@ SPAN_DECLARE(void) v29_rx_set_modem_status_handler(v29_rx_state_t *s, modem_rx_s ...@@ -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).
......
...@@ -1008,7 +1008,7 @@ static void process_half_baud(v17_rx_state_t *s, const complexf_t *sample) ...@@ -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;
......
...@@ -260,7 +260,7 @@ static __inline__ complexf_t getbaud(v17_tx_state_t *s) ...@@ -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;
......
...@@ -753,7 +753,7 @@ static __inline__ void process_half_baud(v27ter_rx_state_t *s, const complexf_t ...@@ -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;
......
...@@ -841,7 +841,7 @@ static void process_half_baud(v29_rx_state_t *s, complexf_t *sample) ...@@ -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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论