diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-16 16:12:51 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-16 16:12:51 +0000 |
commit | 74600d9030a3cbd53b43ccda099e482aed7357cb (patch) | |
tree | 9833feece35fa9711477b198d46dab2c6d58e60d /include | |
parent | 897d8edb51ed4288446304ec5c6811ea4cff540d (diff) |
Use FILE * instead of fd for files to support buffering
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6801 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/channel.h | 3 | ||||
-rwxr-xr-x | include/asterisk/file.h | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index fa1e3395b..d0f3b98ea 100755 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -766,6 +766,9 @@ struct ast_channel *ast_get_channel_by_name_locked(const char *chan); /*! Get channel by name prefix (locks channel) */ struct ast_channel *ast_get_channel_by_name_prefix_locked(const char *name, const int namelen); +/*! Get channel by name prefix (locks channel) */ +struct ast_channel *ast_walk_channel_by_name_prefix_locked(struct ast_channel *chan, const char *name, const int namelen); + /*--- ast_get_channel_by_exten_locked: Get channel by exten (and optionally context) and lock it */ struct ast_channel *ast_get_channel_by_exten_locked(const char *exten, const char *context); diff --git a/include/asterisk/file.h b/include/asterisk/file.h index faf614b33..7dc2f9ec5 100755 --- a/include/asterisk/file.h +++ b/include/asterisk/file.h @@ -49,8 +49,8 @@ struct ast_filestream; * returns 0 on success, -1 on failure */ int ast_format_register(const char *name, const char *exts, int format, - struct ast_filestream * (*open)(int fd), - struct ast_filestream * (*rewrite)(int fd, const char *comment), + struct ast_filestream * (*open)(FILE *f), + struct ast_filestream * (*rewrite)(FILE *f, const char *comment), int (*write)(struct ast_filestream *, struct ast_frame *), int (*seek)(struct ast_filestream *, long offset, int whence), int (*trunc)(struct ast_filestream *), |