]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
use __cdecl calling convention for span_rx_handler_t and span_tx_handler_t type functions
authorMichael Jerris <mike@jerris.com>
Fri, 29 May 2009 18:59:44 +0000 (18:59 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 29 May 2009 18:59:44 +0000 (18:59 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13509 d0543943-73ff-0310-b7d9-9358b9ac24b2

12 files changed:
libs/spandsp/src/fsk.c
libs/spandsp/src/silence_gen.c
libs/spandsp/src/spandsp/fsk.h
libs/spandsp/src/spandsp/silence_gen.h
libs/spandsp/src/spandsp/v17rx.h
libs/spandsp/src/spandsp/v17tx.h
libs/spandsp/src/spandsp/v27ter_rx.h
libs/spandsp/src/spandsp/v29rx.h
libs/spandsp/src/v17rx.c
libs/spandsp/src/v17tx.c
libs/spandsp/src/v27ter_rx.c
libs/spandsp/src/v29rx.c

index e79f6e3f4c41f57032d2632bf040777e7b1a3540..f3a007fa41b2536c02fb7b1005b885d963a30b88 100644 (file)
@@ -333,7 +333,7 @@ static void report_status_change(fsk_rx_state_t *s, int status)
 }
 /*- 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 baudstate;
index a47dac229e85c1a21f99af6b60dddd87d4542c65..bf481e8b03d90b69a12eafa147590b6d17d415ce 100644 (file)
@@ -53,7 +53,7 @@
 
 #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)
     {
index 2ebd368bd2d1a2d17e1c781d1ba7a11ee9548011..45992d3d38df43976254034708160240a8077910 100644 (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.
     \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
     (e.g due to packet loss).
index ac014d1ae3a22b1e7c69d92ad3173a57cd0eebc6..ea395b2497c78904fd2bfb1d38ddb24ba5da9487 100644 (file)
@@ -43,7 +43,7 @@ extern "C"
     \return The number of samples actually generated. This will be zero when
             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.
     \brief Set a silence generator context to output continuous silence.
index 040461aedd12a28cbfe88984b49281ef31a05536..4946df33c2f3ef05e4a8a069d5e2796e86e2144f 100644 (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.
     \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.
     (e.g due to packet loss).
index 48f0462c948e59414e5f5b7eb75ec5a5bf543239..d7b14b4958e267fe45df836e8e34f3cbb6cddc90 100644 (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.
     \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)
 }
index d917464044e30162d8c9c098ee6f80b294161c90..9e0e75480236f7d30ac036e81db29afe77f2c63e 100644 (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.
     \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.
     (e.g due to packet loss).
index 48d1e4f49741b2d5c460aa89faee95d4277273c8..aee96088c21722ed71397c3cbfa318aba000641f 100644 (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 len The number of samples in the buffer.
     \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.
     (e.g due to packet loss).
index 7b029580755b86428e4e3072a3f3846be7ffff8d..4a1e86e8e947a423bc913a862600123c9e0cb986 100644 (file)
@@ -1008,7 +1008,7 @@ static void process_half_baud(v17_rx_state_t *s, const complexf_t *sample)
 }
 /*- 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 step;
index 560591806a0dc2ac2afb9acd5038349670257c6f..587cc6e123cfb829f9596652c9c2501f83682918 100644 (file)
@@ -260,7 +260,7 @@ static __inline__ complexf_t getbaud(v17_tx_state_t *s)
 }
 /*- 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)
     complexi_t x;
index 25f959b019b0b522b3b86c01d260731e086503d6..543face532011b84e8dc7d20232ed7b7c27a81bd 100644 (file)
@@ -753,7 +753,7 @@ static __inline__ void process_half_baud(v27ter_rx_state_t *s, const complexf_t
 }
 /*- 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 step;
index 0b4944add346330b8fffec6bd437a8d45e80c794..bbd93483a950943ebf79059c6e3e2f9cbad346a6 100644 (file)
@@ -841,7 +841,7 @@ static void process_half_baud(v29_rx_state_t *s, complexf_t *sample)
 }
 /*- 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 step;