aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/frame.h
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-01 19:48:31 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-01 19:48:31 +0000
commit953339bb1776c4aa6d52a7aae9ffaff281f47d10 (patch)
treec4fc64acd23903d8cd5171a035b57bfe5d6d0730 /include/asterisk/frame.h
parent98cbdc7b3c2b1c3e0184d30f7b3c48e703c06e6e (diff)
- Add error handling to ast_parse_allow_disallow
- Use this in chan_sip configuration parsing git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49093 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/frame.h')
-rw-r--r--include/asterisk/frame.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h
index 49968ff36..f78a6a6be 100644
--- a/include/asterisk/frame.h
+++ b/include/asterisk/frame.h
@@ -533,8 +533,9 @@ struct ast_format_list ast_codec_pref_getsize(struct ast_codec_pref *pref, int f
/*! \brief Parse an "allow" or "deny" line in a channel or device configuration
and update the capabilities mask and pref if provided.
Video codecs are not added to codec preference lists, since we can not transcode
+ \return Returns number of errors encountered during parsing
*/
-void ast_parse_allow_disallow(struct ast_codec_pref *pref, int *mask, const char *list, int allowing);
+int ast_parse_allow_disallow(struct ast_codec_pref *pref, int *mask, const char *list, int allowing);
/*! \brief Dump audio codec preference list into a string */
int ast_codec_pref_string(struct ast_codec_pref *pref, char *buf, size_t size);