diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-19 03:39:44 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-19 03:39:44 +0000 |
commit | a1e1f02117aa5a7319a7feaa9ee9a1efb0917090 (patch) | |
tree | c79f2640c223fcffed76d0a06ae6a7760c2bb700 /include | |
parent | ceb6e4989146a3f0cc8b7f3c353885f9598fcf41 (diff) |
Allow multiple codecs to be printed in debug (bug #989)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3011 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/frame.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h index 0bec024bb..3f9964621 100755 --- a/include/asterisk/frame.h +++ b/include/asterisk/frame.h @@ -319,15 +319,25 @@ int ast_fr_fdwrite(int fd, struct ast_frame *frame); */ int ast_fr_fdhangup(int fd); -//! Get a format from a name +//! Get the name of a format /*! * \param format id of format - * Gets the name of a format. - * This returns the name of the format in a sttring or UNKN if unknown. + * \return A static string containing the name of the format or "UNKN" if unknown. */ -//! Get the name of a format extern char* ast_getformatname(int format); +//! Get the names of a set of formats +/*! + * \param buf a buffer for the output string + * \param n size of buf (bytes) + * \param format the format (combined IDs of codecs) + * Prints a list of readable codec names corresponding to "format". + * ex: for format=AST_FORMAT_GSM|AST_FORMAT_SPEEX|AST_FORMAT_ILBC it will return "0x602(GSM|SPEEX|ILBC)" + * \return The return value is buf. + */ +extern char* ast_getformatname_multiple(char *buf, unsigned n, int format); + + /*! * \param name string of format * Gets a format from a name. |