diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-10-31 22:19:08 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-10-31 22:19:08 +0000 |
commit | 39a47000475f9b5dae0b5962a8e526363190a4e1 (patch) | |
tree | 4600fef53179e600e5f1780a42345b1f9704590f /include | |
parent | 8b9ef26a4508205525dbee3c3f260be3bfe8d662 (diff) |
Merged revisions 46714 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r46714 | kpfleming | 2006-10-31 15:47:48 -0600 (Tue, 31 Oct 2006) | 2 lines
add an API so that translators can activate/deactivate themselves when needed
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46719 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/translate.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/asterisk/translate.h b/include/asterisk/translate.h index a03f54ef2..5e28c6236 100644 --- a/include/asterisk/translate.h +++ b/include/asterisk/translate.h @@ -108,6 +108,7 @@ struct ast_translator { struct ast_module *module; /* opaque reference to the parent module */ int cost; /*!< Cost in milliseconds for encoding/decoding 1 second of sound */ + int active; /*!< Whether this translator should be used or not */ AST_LIST_ENTRY(ast_translator) list; /*!< link field */ }; @@ -167,6 +168,24 @@ int __ast_register_translator(struct ast_translator *t, struct ast_module *modul int ast_unregister_translator(struct ast_translator *t); /*! + * \brief Activate a previously deactivated translator + * \param t translator to activate + * \return nothing + * + * Enables the specified translator for use. + */ +void ast_translator_activate(struct ast_translator *t); + +/*! + * \brief Deactivate a translator + * \param t translator to deactivate + * \return nothing + * + * Disables the specified translator from being used. + */ +void ast_translator_deactivate(struct ast_translator *t); + +/*! * \brief Chooses the best translation path * * Given a list of sources, and a designed destination format, which should |