summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-08-16 14:48:05 +0000
committerMark Spencer <markster@digium.com>2003-08-16 14:48:05 +0000
commit1fc8a6ca1416ff10b13cd891ad960d19df145ddd (patch)
treefcbef020d83e4b58d4c02767b399ff6820ded89e /include
parent501c800c5ac97b32d031613433f6e54b26c96338 (diff)
New "show codecs" option and mysql feature requests from Tilghman
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1349 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rwxr-xr-xinclude/asterisk/frame.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h
index bd1bb2a72..66b080f42 100755
--- a/include/asterisk/frame.h
+++ b/include/asterisk/frame.h
@@ -323,6 +323,14 @@ extern char* ast_getformatname(int format);
*/
extern int ast_getformatbyname(char *name);
+//! Get a name from a format
+/*!
+ * \param codec codec number (1,2,4,8,16,etc.)
+ * Gets a name from a format
+ * This returns a static string identifying the format on success, 0 on error.
+ */
+extern char *ast_codec2str(int codec);
+
//! Pick the best codec
/* Choose the best codec... Uhhh... Yah. */
extern int ast_best_codec(int fmts);