summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/guid.h
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2012-07-18 07:52:33 +0000
committerLiong Sauw Ming <ming@teluu.com>2012-07-18 07:52:33 +0000
commitc1eabb7ee738b17cf6fd66e761a9269cb7582434 (patch)
treed23bc2d4b3616f8ff55fb193b4a44d452e34e152 /pjlib/include/pj/guid.h
parentbf66ba19d4ad1a3ccfd3e8a5e68c62b82a56a037 (diff)
Fixed #1556: Fix From/To tag and Via branch comparison to be case insensitive
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4208 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/guid.h')
-rw-r--r--pjlib/include/pj/guid.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/pjlib/include/pj/guid.h b/pjlib/include/pj/guid.h
index 96a5849e..7b24dd51 100644
--- a/pjlib/include/pj/guid.h
+++ b/pjlib/include/pj/guid.h
@@ -83,6 +83,17 @@ PJ_DECL(unsigned) pj_GUID_STRING_LENGTH(void);
PJ_DECL(pj_str_t*) pj_generate_unique_string(pj_str_t *str);
/**
+ * Create a globally unique string in lowercase, which length is
+ * PJ_GUID_STRING_LENGTH characters. Caller is responsible for preallocating
+ * the storage used in the string.
+ *
+ * @param str The string to store the result.
+ *
+ * @return The string.
+ */
+PJ_DECL(pj_str_t*) pj_generate_unique_string_lower(pj_str_t *str);
+
+/**
* Generate a unique string.
*
* @param pool Pool to allocate memory from.
@@ -90,6 +101,14 @@ PJ_DECL(pj_str_t*) pj_generate_unique_string(pj_str_t *str);
*/
PJ_DECL(void) pj_create_unique_string(pj_pool_t *pool, pj_str_t *str);
+/**
+ * Generate a unique string in lowercase.
+ *
+ * @param pool Pool to allocate memory from.
+ * @param str The string.
+ */
+PJ_DECL(void) pj_create_unique_string_lower(pj_pool_t *pool, pj_str_t *str);
+
/**
* @}