| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
Header for providers of file and format handling routines. Clients of these routines should include "asterisk/file.h" instead. More...


Go to the source code of this file.
| Data Structures | |
| struct | ast_filestream | 
| This structure is allocated by file.c in one chunk, together with buf_size and desc_size bytes of memory to be used for private purposes (e.g. buffers etc.)  More... | |
| struct | ast_format_def | 
| Each supported file format is described by the following structure.  More... | |
| Macros | |
| #define | ast_format_def_register(f) __ast_format_def_register(f, AST_MODULE_SELF) | 
| Functions | |
| int | __ast_format_def_register (const struct ast_format_def *f, struct ast_module *mod) | 
| Register a new file format capability. Adds a format to Asterisk's format abilities. | |
| int | ast_format_def_unregister (const char *name) | 
| Unregisters a file format. | |
Header for providers of file and format handling routines. Clients of these routines should include "asterisk/file.h" instead.
Definition in file mod_format.h.
| #define ast_format_def_register | ( | f | ) | __ast_format_def_register(f, AST_MODULE_SELF) | 
Definition at line 136 of file mod_format.h.
| int __ast_format_def_register | ( | const struct ast_format_def * | f, | 
| struct ast_module * | mod | ||
| ) | 
Register a new file format capability. Adds a format to Asterisk's format abilities.
| 0 | on success | 
| -1 | on failure | 
Definition at line 125 of file file.c.
References a, ast_calloc, ast_format_register_type(), ast_log, AST_RWLIST_INSERT_HEAD, AST_RWLIST_TRAVERSE, AST_RWLIST_UNLOCK, AST_RWLIST_WRLOCK, ast_verb, b, ast_format_def::buf_size, ast_format_def::exts, ast_format_def::list, LOG_WARNING, ast_format_def::name, and publish_format_update().
| int ast_format_def_unregister | ( | const char * | name | ) | 
Unregisters a file format.
| name | the name of the format you wish to unregister Unregisters a format based on the name of the format. | 
| 0 | on success | 
| -1 | on failure to unregister | 
Definition at line 163 of file file.c.
References ast_format_unregister_type(), ast_free, ast_log, AST_RWLIST_REMOVE_CURRENT, AST_RWLIST_TRAVERSE_SAFE_BEGIN, AST_RWLIST_TRAVERSE_SAFE_END, AST_RWLIST_UNLOCK, AST_RWLIST_WRLOCK, ast_verb, ast_format_def::list, LOG_WARNING, ast_format_def::name, name, and publish_format_update().
Referenced by unload_module(), unload_module(), unload_module(), unload_module(), unload_module(), unload_module(), unload_module(), unload_module(), unload_module(), unload_module(), unload_module(), unload_module(), unload_module(), unload_module(), unload_module(), unload_module(), unload_module(), and unload_module().