diff options
Diffstat (limited to 'camel/gstring-util.c')
-rw-r--r-- | camel/gstring-util.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/camel/gstring-util.c b/camel/gstring-util.c index 05cdc08beb..4d0411de33 100644 --- a/camel/gstring-util.c +++ b/camel/gstring-util.c @@ -37,7 +37,7 @@ * @Return Value : true if the strings equal, false otherwise **/ gboolean -g_string_equals(GString *string1, GString *string2) +g_string_equals (GString *string1, GString *string2) { g_assert(string1); g_assert(string2); @@ -46,6 +46,7 @@ g_string_equals(GString *string1, GString *string2) + /** * g_string_clone : clone a GString * @@ -192,6 +193,11 @@ g_string_equal_for_hash (gconstpointer v, gconstpointer v2) return strcmp ( ((const GString*)v)->str, ((const GString*)v2)->str) == 0; } +g_string_equal_for_glist (gconstpointer v, gconstpointer v2) +{ + return !strcmp ( ((const GString*)v)->str, ((const GString*)v2)->str) == 0; +} + /** * g_string_hash: computes a hash value for a Gstring |