aboutsummaryrefslogtreecommitdiffstats
path: root/camel/gstring-util.c
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@inria.fr>1999-05-10 05:03:54 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-05-10 05:03:54 +0800
commit62b338094aac49edd76acbc227e18c4f06e726c1 (patch)
treed482fec8e6a4ccabef92d7dddd267d9eb5e05b4a /camel/gstring-util.c
parent65cc58a082a305923a472bcd75c843a47586006c (diff)
downloadgsoc2013-evolution-62b338094aac49edd76acbc227e18c4f06e726c1.tar
gsoc2013-evolution-62b338094aac49edd76acbc227e18c4f06e726c1.tar.gz
gsoc2013-evolution-62b338094aac49edd76acbc227e18c4f06e726c1.tar.bz2
gsoc2013-evolution-62b338094aac49edd76acbc227e18c4f06e726c1.tar.lz
gsoc2013-evolution-62b338094aac49edd76acbc227e18c4f06e726c1.tar.xz
gsoc2013-evolution-62b338094aac49edd76acbc227e18c4f06e726c1.tar.zst
gsoc2013-evolution-62b338094aac49edd76acbc227e18c4f06e726c1.zip
new method
1999-05-09 bertrand <Bertrand.Guiheneuf@inria.fr> * camel/camel-mime-part.c (__camel_mime_part_add_header): new method * camel/camel-mime-part.h (struct CamelMimePart): added core fields. svn path=/trunk/; revision=899
Diffstat (limited to 'camel/gstring-util.c')
-rw-r--r--camel/gstring-util.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/camel/gstring-util.c b/camel/gstring-util.c
index 3c9d24d167..43e482154e 100644
--- a/camel/gstring-util.c
+++ b/camel/gstring-util.c
@@ -175,3 +175,33 @@ g_string_append_g_string(GString *dest_string, GString *other_string)
g_string_append(dest_string, other_string->str);
}
+
+
+
+/**
+ * g_string_equal_for_hash: test equality of two GStrings for hash tables
+ * @v: string 1
+ * @v2: string 2
+ *
+ *
+ *
+ * Return value:
+ **/
+g_string_equal_for_hash (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
+ * @v: Gstring object
+ *
+ *
+ *
+ * Return value:
+ **/
+guint g_string_hash (gconstpointer v)
+{
+ return g_str_hash(((const GString*)v)->str);
+}