summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorAlexander Traud <pabstraud@compuserve.com>2015-11-09 10:01:41 +0100
committerAlexander Traud <pabstraud@compuserve.com>2015-11-09 16:58:52 +0100
commitcf79b627789e2c6434419b71508a296c9ee90539 (patch)
treede7a9f429d1a77bec41957e661d17bd96d8ac06f /include/asterisk
parentf12ebe35848c2ce82e53b332742e83b2b5875502 (diff)
ast_format_cap_get_names: To display all formats, the buffer was increased.
ASTERISK-25533 #close Change-Id: Ie1a9d1a6511b3f1a56b93d04475fbf8a4e40010a
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/format_cap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asterisk/format_cap.h b/include/asterisk/format_cap.h
index e422cc609..8b69e08b1 100644
--- a/include/asterisk/format_cap.h
+++ b/include/asterisk/format_cap.h
@@ -310,6 +310,11 @@ int ast_format_cap_has_type(const struct ast_format_cap *cap, enum ast_media_typ
*/
const char *ast_format_cap_get_names(struct ast_format_cap *cap, struct ast_str **buf);
+#ifndef AST_FORMAT_CAP_NAMES_LEN
+/*! Buffer size for callers of ast_format_cap_get_names to allocate. */
+#define AST_FORMAT_CAP_NAMES_LEN 384
+#endif
+
/*!
* \brief Determine if a format cap has no formats in it.
*