mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
Use FILE * instead of fd for files to support buffering
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6801 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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 *),
|
||||
|
||||
Reference in New Issue
Block a user