mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
trailing whitespace/ useless extern removal
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \file
|
/*! \file
|
||||||
* \brief FSK Modem Support
|
* \brief FSK Modem Support
|
||||||
* \note Includes code and algorithms from the Zapata library.
|
* \note Includes code and algorithms from the Zapata library.
|
||||||
* \todo Translate Emiliano Zapata's spanish comments to english, please.
|
* \todo Translate Emiliano Zapata's spanish comments to english, please.
|
||||||
*/
|
*/
|
||||||
@@ -59,14 +59,14 @@ typedef struct {
|
|||||||
} fsk_data;
|
} fsk_data;
|
||||||
|
|
||||||
/* \brief Retrieve a serial byte into outbyte.
|
/* \brief Retrieve a serial byte into outbyte.
|
||||||
Buffer is a pointer into a series of
|
Buffer is a pointer into a series of
|
||||||
shorts and len records the number of bytes in the buffer. len will be
|
shorts and len records the number of bytes in the buffer. len will be
|
||||||
overwritten with the number of bytes left that were not consumed.
|
overwritten with the number of bytes left that were not consumed.
|
||||||
\return return value is as follows:
|
\return return value is as follows:
|
||||||
\arg 0: Still looking for something...
|
\arg 0: Still looking for something...
|
||||||
\arg 1: An output byte was received and stored in outbyte
|
\arg 1: An output byte was received and stored in outbyte
|
||||||
\arg -1: An error occured in the transmission
|
\arg -1: An error occured in the transmission
|
||||||
He must be called with at least 80 bytes of buffer. */
|
He must be called with at least 80 bytes of buffer. */
|
||||||
extern int fsk_serie(fsk_data *fskd, short *buffer, int *len, int *outbyte);
|
int fsk_serie(fsk_data *fskd, short *buffer, int *len, int *outbyte);
|
||||||
|
|
||||||
#endif /* _ASTERISK_FSKMODEM_H */
|
#endif /* _ASTERISK_FSKMODEM_H */
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \file
|
/*! \file
|
||||||
* \brief TTY/TDD Generation support
|
* \brief TTY/TDD Generation support
|
||||||
* \note Includes code and algorithms from the Zapata library.
|
* \note Includes code and algorithms from the Zapata library.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ typedef struct tdd_state TDDSTATE;
|
|||||||
/*!
|
/*!
|
||||||
* Initializes the TDD system. Mostly stuff for inverse FFT
|
* Initializes the TDD system. Mostly stuff for inverse FFT
|
||||||
*/
|
*/
|
||||||
extern void tdd_init(void);
|
void tdd_init(void);
|
||||||
|
|
||||||
/*! Generates a CallerID FSK stream in ulaw format suitable for transmission. */
|
/*! Generates a CallerID FSK stream in ulaw format suitable for transmission. */
|
||||||
/*!
|
/*!
|
||||||
@@ -43,14 +43,14 @@ extern void tdd_init(void);
|
|||||||
* This function creates a stream of TDD data in ulaw format. It returns the size
|
* This function creates a stream of TDD data in ulaw format. It returns the size
|
||||||
* (in bytes) of the data (if it returns a size of 0, there is probably an error)
|
* (in bytes) of the data (if it returns a size of 0, there is probably an error)
|
||||||
*/
|
*/
|
||||||
extern int tdd_generate(struct tdd_state *tdd, unsigned char *buf, const char *string);
|
int tdd_generate(struct tdd_state *tdd, unsigned char *buf, const char *string);
|
||||||
|
|
||||||
/*! Create a TDD state machine */
|
/*! Create a TDD state machine */
|
||||||
/*!
|
/*!
|
||||||
* This function returns a malloc'd instance of the tdd_state data structure.
|
* This function returns a malloc'd instance of the tdd_state data structure.
|
||||||
* Returns a pointer to a malloc'd tdd_state structure, or NULL on error.
|
* Returns a pointer to a malloc'd tdd_state structure, or NULL on error.
|
||||||
*/
|
*/
|
||||||
extern struct tdd_state *tdd_new(void);
|
struct tdd_state *tdd_new(void);
|
||||||
|
|
||||||
/*! Read samples into the state machine, and return character (if any). */
|
/*! Read samples into the state machine, and return character (if any). */
|
||||||
/*!
|
/*!
|
||||||
@@ -59,17 +59,17 @@ extern struct tdd_state *tdd_new(void);
|
|||||||
* \param samples number of samples contained within the buffer.
|
* \param samples number of samples contained within the buffer.
|
||||||
*
|
*
|
||||||
* Send received audio to the TDD demodulator.
|
* Send received audio to the TDD demodulator.
|
||||||
* Returns -1 on error, 0 for "needs more samples",
|
* Returns -1 on error, 0 for "needs more samples",
|
||||||
* and > 0 (the character) if reception of a character is complete.
|
* and > 0 (the character) if reception of a character is complete.
|
||||||
*/
|
*/
|
||||||
extern int tdd_feed(struct tdd_state *tdd, unsigned char *ubuf, int samples);
|
int tdd_feed(struct tdd_state *tdd, unsigned char *ubuf, int samples);
|
||||||
|
|
||||||
/*! Free a TDD state machine */
|
/*! Free a TDD state machine */
|
||||||
/*!
|
/*!
|
||||||
* \param tdd This is the tdd_state state machine to free
|
* \param tdd This is the tdd_state state machine to free
|
||||||
* This function frees tdd_state tdd.
|
* This function frees tdd_state tdd.
|
||||||
*/
|
*/
|
||||||
extern void tdd_free(struct tdd_state *tdd);
|
void tdd_free(struct tdd_state *tdd);
|
||||||
|
|
||||||
/*! Generate Echo Canceller diable tone (2100HZ) */
|
/*! Generate Echo Canceller diable tone (2100HZ) */
|
||||||
/*!
|
/*!
|
||||||
@@ -77,6 +77,6 @@ extern void tdd_free(struct tdd_state *tdd);
|
|||||||
* \param len This is the length (in samples) of the tone data to generate
|
* \param len This is the length (in samples) of the tone data to generate
|
||||||
* Returns 0 if no error, and -1 if error.
|
* Returns 0 if no error, and -1 if error.
|
||||||
*/
|
*/
|
||||||
extern int ast_tdd_gen_ecdisa(unsigned char *outbuf, int len);
|
int ast_tdd_gen_ecdisa(unsigned char *outbuf, int len);
|
||||||
|
|
||||||
#endif /* _ASTERISK_TDD_H */
|
#endif /* _ASTERISK_TDD_H */
|
||||||
|
Reference in New Issue
Block a user