summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsip
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2010-10-13 09:41:37 +0000
committerBenny Prijono <bennylp@teluu.com>2010-10-13 09:41:37 +0000
commitc9d40b273390ee46a5c6441fd5fd81c48edce22a (patch)
tree3225ed48f534c34121d95b2bd3f37edeec4ba147 /pjsip/include/pjsip
parentb3c3836ac9841f7ecfa085b0a8de4f68ffd1b8c6 (diff)
Fixed #1147: Bug in parsing multipart message bodies (thanks Johan Lantz for the report)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3340 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsip')
-rw-r--r--pjsip/include/pjsip/sip_msg.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/pjsip/include/pjsip/sip_msg.h b/pjsip/include/pjsip/sip_msg.h
index 4c112dc9..39cc6949 100644
--- a/pjsip/include/pjsip/sip_msg.h
+++ b/pjsip/include/pjsip/sip_msg.h
@@ -546,12 +546,18 @@ PJ_DECL(void) pjsip_media_type_init2(pjsip_media_type *mt,
*
* @param mt1 The first media type.
* @param mt2 The second media type.
+ * @param cmp_param Specify how to compare the media type parameters:
+ * - 0: do not compare parameters
+ * - 1: compare parameters but ignore parameters that
+ * only appear in one of the media type.
+ * - 2: compare the parameters.
*
* @return Zero if both media types are equal, -1 if mt1 < mt2,
* 1 if mt1 > mt2.
*/
PJ_DECL(int) pjsip_media_type_cmp(const pjsip_media_type *mt1,
- const pjsip_media_type *mt2);
+ const pjsip_media_type *mt2,
+ int cmp_param);
/**
* Copy SIP media type to another.