aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk
diff options
context:
space:
mode:
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/file.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asterisk/file.h b/include/asterisk/file.h
index 0f33b5340..5c3357e7d 100644
--- a/include/asterisk/file.h
+++ b/include/asterisk/file.h
@@ -40,6 +40,9 @@ extern "C" {
struct ast_filestream;
struct ast_format;
+/*! The maximum number of formats we expect to see in a format string */
+#define AST_MAX_FORMATS 10
+
/*! Convenient for waiting */
#define AST_DIGIT_ANY "0123456789#*ABCD"
#define AST_DIGIT_ANYNUM "0123456789"
@@ -315,6 +318,14 @@ off_t ast_tellstream(struct ast_filestream *fs);
*/
struct ast_frame *ast_readframe(struct ast_filestream *s);
+/*! Remove duplicate formats from a format string. */
+/*!
+ * \param fmts a format string, this string will be modified
+ * \retval NULL error
+ * \return a pointer to the reduced format string, this is a pointer to fmts
+ */
+char *ast_format_str_reduce(char *fmts);
+
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif