removal of trailing whitespace and useless 'extern'

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16653 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Luigi Rizzo 20 years ago
parent 0b655c3ce9
commit 7b06841395

@ -38,7 +38,7 @@ struct ast_key;
*
* Returns the key on success or NULL on failure
*/
extern struct ast_key *(*ast_key_get)(const char *key, int type);
struct ast_key *(*ast_key_get)(const char *key, int type);
/*! \brief Check the authenticity of a message signature using a given public key
* \param key a public key to use to verify
@ -48,7 +48,7 @@ extern struct ast_key *(*ast_key_get)(const char *key, int type);
* Returns 0 if the signature is valid, or -1 otherwise
*
*/
extern int (*ast_check_signature)(struct ast_key *key, const char *msg, const char *sig);
int (*ast_check_signature)(struct ast_key *key, const char *msg, const char *sig);
/*! \brief Check the authenticity of a message signature using a given public key
* \param key a public key to use to verify
@ -58,7 +58,7 @@ extern int (*ast_check_signature)(struct ast_key *key, const char *msg, const ch
* Returns 0 if the signature is valid, or -1 otherwise
*
*/
extern int (*ast_check_signature_bin)(struct ast_key *key, const char *msg, int msglen, const unsigned char *sig);
int (*ast_check_signature_bin)(struct ast_key *key, const char *msg, int msglen, const unsigned char *sig);
/*!
* \param key a private key to use to create the signature
@ -69,7 +69,7 @@ extern int (*ast_check_signature_bin)(struct ast_key *key, const char *msg, int
* Returns 0 on success or -1 on failure.
*
*/
extern int (*ast_sign)(struct ast_key *key, char *msg, char *sig);
int (*ast_sign)(struct ast_key *key, char *msg, char *sig);
/*!
* \param key a private key to use to create the signature
@ -80,7 +80,7 @@ extern int (*ast_sign)(struct ast_key *key, char *msg, char *sig);
* Returns 0 on success or -1 on failure.
*
*/
extern int (*ast_sign_bin)(struct ast_key *key, const char *msg, int msglen, unsigned char *sig);
int (*ast_sign_bin)(struct ast_key *key, const char *msg, int msglen, unsigned char *sig);
/*!
* \param key a private key to use to encrypt
@ -92,7 +92,7 @@ extern int (*ast_sign_bin)(struct ast_key *key, const char *msg, int msglen, uns
* Returns length of encrypted data on success or -1 on failure.
*
*/
extern int (*ast_encrypt_bin)(unsigned char *dst, const unsigned char *src, int srclen, struct ast_key *key);
int (*ast_encrypt_bin)(unsigned char *dst, const unsigned char *src, int srclen, struct ast_key *key);
/*!
* \param key a private key to use to decrypt
@ -104,7 +104,7 @@ extern int (*ast_encrypt_bin)(unsigned char *dst, const unsigned char *src, int
* Returns length of decrypted data on success or -1 on failure.
*
*/
extern int (*ast_decrypt_bin)(unsigned char *dst, const unsigned char *src, int srclen, struct ast_key *key);
int (*ast_decrypt_bin)(unsigned char *dst, const unsigned char *src, int srclen, struct ast_key *key);
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif

@ -35,7 +35,7 @@ struct ast_channel;
\note Asterisk DNS is synchronus at this time. This means that if your DNS
services does not work, Asterisk may lock while waiting for response.
*/
extern int ast_search_dns(void *context, const char *dname, int class, int type,
int ast_search_dns(void *context, const char *dname, int class, int type,
int (*callback)(void *context, char *answer, int len, char *fullanswer));
#endif /* _ASTERISK_DNS_H */

@ -27,21 +27,21 @@
/*! \brief Lookup entry in ENUM Returns 1 if found, 0 if not found, -1 on hangup
\param chan Channel
\param number E164 number with or without the leading +
\param number E164 number with or without the leading +
\param location Number returned (or SIP uri)
\param maxloc Max length
\param technology Technology (from url scheme in response)
\param technology Technology (from url scheme in response)
You can set it to get particular answer RR, if there are many techs in DNS response, example: "sip"
If you need any record, then set it to empty string
\param maxtech Max length
\param suffix Zone suffix (if is NULL then use enum.conf 'search' variable)
\param options Options ('c' to count number of NAPTR RR, or number - the position of required RR in the answer list
\param maxtech Max length
\param suffix Zone suffix (if is NULL then use enum.conf 'search' variable)
\param options Options ('c' to count number of NAPTR RR, or number - the position of required RR in the answer list
*/
extern int ast_get_enum(struct ast_channel *chan, const char *number, char *location, int maxloc, char *technology, int maxtech, char* suffix, char* options);
int ast_get_enum(struct ast_channel *chan, const char *number, char *location, int maxloc, char *technology, int maxtech, char* suffix, char* options);
/*! \brief Lookup DNS TXT record (used by app TXTCIDnum
\param chan Channel
\param number E164 number with or without the leading +
\param number E164 number with or without the leading +
\param location Number returned (or SIP uri)
\param maxloc Max length of number
\param technology Technology (not used in TXT records)
@ -49,9 +49,9 @@ extern int ast_get_enum(struct ast_channel *chan, const char *number, char *loca
\param txt Text string (return value)
\param maxtxt Max length of "txt"
*/
extern int ast_get_txt(struct ast_channel *chan, const char *number, char *location, int maxloc, char *technology, int maxtech, char *txt, int maxtxt);
int ast_get_txt(struct ast_channel *chan, const char *number, char *location, int maxloc, char *technology, int maxtech, char *txt, int maxtxt);
extern int ast_enum_init(void);
extern int ast_enum_reload(void);
int ast_enum_init(void);
int ast_enum_reload(void);
#endif /* _ASTERISK_ENUM_H */

@ -49,7 +49,7 @@ struct ast_imager {
* Checks the channel to see if it supports the transmission of images
* Returns non-zero if image transmission is supported
*/
extern int ast_supports_images(struct ast_channel *chan);
int ast_supports_images(struct ast_channel *chan);
/*! Sends an image */
/*!
@ -58,7 +58,7 @@ extern int ast_supports_images(struct ast_channel *chan);
* Sends an image on the given channel.
* Returns 0 on success, -1 on error
*/
extern int ast_send_image(struct ast_channel *chan, char *filename);
int ast_send_image(struct ast_channel *chan, char *filename);
/*! Make an image */
/*!
@ -68,7 +68,7 @@ extern int ast_send_image(struct ast_channel *chan, char *filename);
* Make an image from a filename ??? No estoy positivo
* Returns an ast_frame on success, NULL on failure
*/
extern struct ast_frame *ast_read_image(char *filename, const char *preflang, int format);
struct ast_frame *ast_read_image(char *filename, const char *preflang, int format);
/*! Register image format */
/*!
@ -76,7 +76,7 @@ extern struct ast_frame *ast_read_image(char *filename, const char *preflang, in
* Registers an image format
* Returns 0 regardless
*/
extern int ast_image_register(struct ast_imager *imgdrv);
int ast_image_register(struct ast_imager *imgdrv);
/*! Unregister an image format */
/*!
@ -84,13 +84,13 @@ extern int ast_image_register(struct ast_imager *imgdrv);
* Unregisters the image format passed in
* Returns nothing
*/
extern void ast_image_unregister(struct ast_imager *imgdrv);
void ast_image_unregister(struct ast_imager *imgdrv);
/*! Initialize image stuff */
/*!
* Initializes all the various image stuff. Basically just registers the cli stuff
* Returns 0 all the time
*/
extern int ast_image_init(void);
int ast_image_init(void);
#endif /* _ASTERISK_IMAGE_H */

@ -62,7 +62,7 @@ struct io_context;
* Basically mallocs an IO structure and sets up some default values.
* Returns an allocated io_context structure
*/
extern struct io_context *io_context_create(void);
struct io_context *io_context_create(void);
/*! Destroys a context */
/*
@ -70,7 +70,7 @@ extern struct io_context *io_context_create(void);
* Destroy a context for I/O operations
* Frees all memory associated with the given io_context structure along with the structure itself
*/
extern void io_context_destroy(struct io_context *ioc);
void io_context_destroy(struct io_context *ioc);
typedef int (*ast_io_cb)(int *id, int fd, short events, void *cbdata);
#define AST_IO_CB(a) ((ast_io_cb)(a))
@ -85,7 +85,7 @@ typedef int (*ast_io_cb)(int *id, int fd, short events, void *cbdata);
* Watch for any of revents activites on fd, calling callback with data as
* callback data. Returns a pointer to ID of the IO event, or NULL on failure.
*/
extern int *ast_io_add(struct io_context *ioc, int fd, ast_io_cb callback, short events, void *data);
int *ast_io_add(struct io_context *ioc, int fd, ast_io_cb callback, short events, void *data);
/*! Changes an IO handler */
/*!
@ -99,7 +99,7 @@ extern int *ast_io_add(struct io_context *ioc, int fd, ast_io_cb callback, short
* if >-1, and data if non-null. Returns a pointero to the ID of the IO event,
* or NULL on failure.
*/
extern int *ast_io_change(struct io_context *ioc, int *id, int fd, ast_io_cb callback, short events, void *data);
int *ast_io_change(struct io_context *ioc, int *id, int fd, ast_io_cb callback, short events, void *data);
/*! Removes an IO context */
/*!
@ -107,7 +107,7 @@ extern int *ast_io_change(struct io_context *ioc, int *id, int fd, ast_io_cb cal
* \param id which ID to remove
* Remove an I/O id from consideration Returns 0 on success or -1 on failure.
*/
extern int ast_io_remove(struct io_context *ioc, int *id);
int ast_io_remove(struct io_context *ioc, int *id);
/*! Waits for IO */
/*!
@ -118,25 +118,25 @@ extern int ast_io_remove(struct io_context *ioc, int *id);
* any necessary I/O. Returns the number of
* I/O events which took place.
*/
extern int ast_io_wait(struct io_context *ioc, int howlong);
int ast_io_wait(struct io_context *ioc, int howlong);
/*! Dumps the IO array */
/*
* Debugging: Dump everything in the I/O array
*/
extern void ast_io_dump(struct io_context *ioc);
void ast_io_dump(struct io_context *ioc);
/*! Set fd into non-echoing mode (if fd is a tty) */
extern int ast_hide_password(int fd);
int ast_hide_password(int fd);
/*! Restores TTY mode */
/*
* Call with result from previous ast_hide_password
*/
extern int ast_restore_tty(int fd, int oldstatus);
int ast_restore_tty(int fd, int oldstatus);
extern int ast_get_termcols(int fd);
int ast_get_termcols(int fd);
#if defined(__cplusplus) || defined(c_plusplus)
}

@ -41,7 +41,7 @@ struct sched_context;
* \note Create a scheduling context
* \return Returns a malloc'd sched_context structure, NULL on failure
*/
extern struct sched_context *sched_context_create(void);
struct sched_context *sched_context_create(void);
/*! \brief destroys a schedule context
* Destroys (free's) the given sched_context structure
@ -69,7 +69,7 @@ typedef int (*ast_sched_cb)(void *data);
* \param data data to pass to the callback
* \return Returns a schedule item ID on success, -1 on failure
*/
extern int ast_sched_add(struct sched_context *con, int when, ast_sched_cb callback, void *data);
int ast_sched_add(struct sched_context *con, int when, ast_sched_cb callback, void *data);
/*!Adds a scheduled event with rescheduling support
* \param con Scheduler context to add
@ -84,7 +84,7 @@ extern int ast_sched_add(struct sched_context *con, int when, ast_sched_cb callb
* If callback returns 0, no further events will be re-scheduled
* \return Returns a schedule item ID on success, -1 on failure
*/
extern int ast_sched_add_variable(struct sched_context *con, int when, ast_sched_cb callback, void *data, int variable);
int ast_sched_add_variable(struct sched_context *con, int when, ast_sched_cb callback, void *data, int variable);
/*! \brief Deletes a scheduled event
* Remove this event from being run. A procedure should not remove its
@ -93,7 +93,7 @@ extern int ast_sched_add_variable(struct sched_context *con, int when, ast_sched
* \param id ID of the scheduled item to delete
* \return Returns 0 on success, -1 on failure
*/
extern int ast_sched_del(struct sched_context *con, int id);
int ast_sched_del(struct sched_context *con, int id);
/*! \brief Determines number of seconds until the next outstanding event to take place
* Determine the number of seconds until the next outstanding event
@ -104,7 +104,7 @@ extern int ast_sched_del(struct sched_context *con, int id);
* \return Returns "-1" if there is nothing there are no scheduled events
* (and thus the poll should not timeout)
*/
extern int ast_sched_wait(struct sched_context *con);
int ast_sched_wait(struct sched_context *con);
/*! \brief Runs the queue
* \param con Scheduling context to run
@ -113,19 +113,19 @@ extern int ast_sched_wait(struct sched_context *con);
* \param con context to act upon
* \return Returns the number of events processed.
*/
extern int ast_sched_runq(struct sched_context *con);
int ast_sched_runq(struct sched_context *con);
/*! \brief Dumps the scheduler contents
* Debugging: Dump the contents of the scheduler to stderr
* \param con Context to dump
*/
extern void ast_sched_dump(const struct sched_context *con);
void ast_sched_dump(const struct sched_context *con);
/*! \brief Returns the number of seconds before an event takes place
* \param con Context to use
* \param id Id to dump
*/
extern long ast_sched_when(struct sched_context *con,int id);
long ast_sched_when(struct sched_context *con,int id);
/*!
* \brief Convenience macro for objects and reference (add)

@ -37,35 +37,35 @@ extern "C" {
#define ATTR_HIDDEN 8
#define COLOR_BLACK 30
#define COLOR_GRAY 30 | 128
#define COLOR_GRAY (30 | 128)
#define COLOR_RED 31
#define COLOR_BRRED 31 | 128
#define COLOR_BRRED (31 | 128)
#define COLOR_GREEN 32
#define COLOR_BRGREEN 32 | 128
#define COLOR_BRGREEN (32 | 128)
#define COLOR_BROWN 33
#define COLOR_YELLOW 33 | 128
#define COLOR_YELLOW (33 | 128)
#define COLOR_BLUE 34
#define COLOR_BRBLUE 34 | 128
#define COLOR_BRBLUE (34 | 128)
#define COLOR_MAGENTA 35
#define COLOR_BRMAGENTA 35 | 128
#define COLOR_BRMAGENTA (35 | 128)
#define COLOR_CYAN 36
#define COLOR_BRCYAN 36 | 128
#define COLOR_BRCYAN (36 | 128)
#define COLOR_WHITE 37
#define COLOR_BRWHITE 37 | 128
#define COLOR_BRWHITE (37 | 128)
extern char *term_color(char *outbuf, const char *inbuf, int fgcolor, int bgcolor, int maxout);
char *term_color(char *outbuf, const char *inbuf, int fgcolor, int bgcolor, int maxout);
extern char *term_color_code(char *outbuf, int fgcolor, int bgcolor, int maxout);
char *term_color_code(char *outbuf, int fgcolor, int bgcolor, int maxout);
extern char *term_strip(char *outbuf, char *inbuf, int maxout);
char *term_strip(char *outbuf, char *inbuf, int maxout);
extern char *term_prompt(char *outbuf, const char *inbuf, int maxout);
char *term_prompt(char *outbuf, const char *inbuf, int maxout);
extern char *term_prep(void);
char *term_prep(void);
extern char *term_end(void);
char *term_end(void);
extern char *term_quit(void);
char *term_quit(void);
#if defined(__cplusplus) || defined(c_plusplus)
}

Loading…
Cancel
Save