Hi all:
I want to write an iterator class for GHashTable which belongs to GNU
glib[ c library ] .Access function of GHashTable now only support internal
iterator and define
struct _GHashNode
{
gpointer key;
gpointer value;
GHashNode *next;
};
and
struct _GHashTable
{
gint size;
gint nnodes;
GHashNode **nodes;
GHashFunc hash_func;
GEqualFunc key_equal_func;
GDestroyNotify key_destroy_func;
GDestroyNotify value_destroy_func;
};
in ghash.c file .How can I write an external iterator for GHashTable ?
Any suggestion will be appreciated !
Thanks a lot !