diff options
author | Olle Johansson <oej@edvina.net> | 2007-01-01 19:48:31 +0000 |
---|---|---|
committer | Olle Johansson <oej@edvina.net> | 2007-01-01 19:48:31 +0000 |
commit | 9074555e37710be78028b554579a039036bd9d4e (patch) | |
tree | c4fc64acd23903d8cd5171a035b57bfe5d6d0730 /include/asterisk | |
parent | f83b845f08c23ec4755d0bf857498b5bd5f67dff (diff) |
- Add error handling to ast_parse_allow_disallow
- Use this in chan_sip configuration parsing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/frame.h | 3 |
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); |