added GFreeFunc and g_hash_table_set_key_freefunc() prototype. added

Tue Nov 24 14:05:47 EST 1998	Michael K. Johnson <johnsonm@redhat.com>

	* glib.h: added GFreeFunc and g_hash_table_set_key_freefunc()
	prototype.
	* ghash.c: added g_hash_table_set_key_freefunc() implementation.
	Modified the prototypes of the functions g_hash_node_destroy() and
	g_hash_nodes_destroy(), and changed the functions that call them
	to match the new definitions.
	This changes no external interfaces, and should create no binary
	or source incompatibilities.  It does add a member to the
	GHashTable structure.
This commit is contained in:
EST 1998 Michael K. Johnson
1998-11-24 19:38:17 +00:00
committed by Michael Johnson
parent 9c1692c260
commit 3568d22b53
12 changed files with 148 additions and 18 deletions

3
glib.h
View File

@@ -779,6 +779,7 @@ typedef void (*GDataForeachFunc) (GQuark key_id,
typedef void (*GFunc) (gpointer data,
gpointer user_data);
typedef guint (*GHashFunc) (gconstpointer key);
typedef void (*GFreeFunc) (gpointer data);
typedef void (*GHFunc) (gpointer key,
gpointer value,
gpointer user_data);
@@ -986,6 +987,8 @@ gint g_hash_table_foreach_remove (GHashTable *hash_table,
GHRFunc func,
gpointer user_data);
gint g_hash_table_size (GHashTable *hash_table);
void g_hash_table_set_key_freefunc (GHashTable *hash_table,
GFreeFunc *free_func);
/* Caches