From: Jasper St. Pierre Date: Sun, 7 Oct 2012 23:10:36 +0000 (-0300) Subject: ghash: Add documentation X-Git-Tag: 2.35.1~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9730f0e319472750f5b7b8b62743ded86e5eaeb;p=platform%2Fupstream%2Fglib.git ghash: Add documentation --- diff --git a/glib/ghash.c b/glib/ghash.c index 3fc5b5a..8a382ec 100644 --- a/glib/ghash.c +++ b/glib/ghash.c @@ -92,40 +92,9 @@ * allocate memory to store the values, which can be a considerable * space saving, if your set is large. * - * - * GHashTable * - * set_new (GHashFunc hash_func, - * GEqualFunc equal_func, - * GDestroyNotify destroy) - * { - * return g_hash_table_new_full (hash_func, equal_func, destroy, NULL); - * } - * - * void - * set_add (GHashTable *set, - * gpointer element) - * { - * g_hash_table_replace (set, element, element); - * } - * - * gboolean - * set_contains (GHashTable *set, - * gpointer element) - * { - * return g_hash_table_lookup_extended (set, element, NULL, NULL); - * } - * - * gboolean - * set_remove (GHashTable *set, - * gpointer element) - * { - * return g_hash_table_remove (set, element); - * } - * - * - * - * As of version 2.32, there is also a g_hash_table_add() function to - * add a key to a #GHashTable that is being used as a set. + * + * The functions g_hash_table_add(), g_hash_table_contains() are both + * designed to be used when using #GHashTable as a set. */ /**