summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsip/sip_msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip/include/pjsip/sip_msg.h')
-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.