diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-31 10:29:50 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-31 10:29:50 +0000 |
commit | 7f4ae1ebd634e7bb7ec7e85e39529251f36dfa3b (patch) | |
tree | 8fc86911fe0f6b74bba1c1fbd4a2a3f330aa8287 /include/asterisk/io.h | |
parent | fd244115bbd842332520b177d20de384f5350ad9 (diff) |
removal of trailing whitespace and useless 'extern'
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16653 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/io.h')
-rw-r--r-- | include/asterisk/io.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/asterisk/io.h b/include/asterisk/io.h index c33fb515b..66ebceea0 100644 --- a/include/asterisk/io.h +++ b/include/asterisk/io.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,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) } |