aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-16 14:48:05 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-16 14:48:05 +0000
commitb7fbd14cece6a0345918a946fdba5bdc3268e539 (patch)
treefcbef020d83e4b58d4c02767b399ff6820ded89e /include
parentc3ef7b672f25621ba670ba22955a3dfc0953c739 (diff)
New "show codecs" option and mysql feature requests from Tilghman
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1349 f38db490-d61c-443f-a65b-d21fe96a405b
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);