mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-11 15:18:38 +00:00
removal of trailing whitespace and useless 'extern'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16653 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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,22 +70,22 @@ 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))
|
||||
|
||||
/*! Adds an IO context */
|
||||
/*!
|
||||
/*!
|
||||
* \param ioc which context to use
|
||||
* \param fd which fd to monitor
|
||||
* \param callback callback function to run
|
||||
* \param events event mask of events to wait for
|
||||
* \param data data to pass to the callback
|
||||
* Watch for any of revents activites on fd, calling callback with data as
|
||||
* 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,15 +99,15 @@ 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 */
|
||||
/*!
|
||||
/*!
|
||||
* \param ioc which io_context to remove it from
|
||||
* \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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user