diff options
author | EST 1998 Michael K. Johnson <johnsonm@redhat.com> | 1998-11-24 19:38:17 +0000 |
---|---|---|
committer | Michael Johnson <johnsonm@src.gnome.org> | 1998-11-24 19:38:17 +0000 |
commit | 3568d22b5352be80c5c86cda1ebe77943bafb962 (patch) | |
tree | 16067bc1ef5bc2cd8f3834183df8c2501f52abe4 /glib.h | |
parent | 9c1692c2604bf147d2b08877d8cebb1f077658e0 (diff) |
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.
Diffstat (limited to 'glib.h')
-rw-r--r-- | glib.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |