diff options
Diffstat (limited to 'include/asterisk/translate.h')
-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 |