Declaration [src]

gnt_hash_table_duplicate (
  GHashTable* src,
  GHashFunc hash,
  GEqualFunc equal,
  GDestroyNotify key_d,
  GDestroyNotify value_d,
  GntDuplicateFunc key_dup,
  GntDuplicateFunc value_dup

Description [src]

Duplicate the contents of a hastable.


src GHashTable

The source hashtable.

 The data is owned by the caller of the function.
hash GHashFunc

The hash-function to use.

equal GEqualFunc

The hash-equal function to use.

key_d GDestroyNotify

The key-destroy function to use.

value_d GDestroyNotify

The value-destroy function to use.

key_dup GntDuplicateFunc

The function to use to duplicate the key.

value_dup GntDuplicateFunc

The function to use to duplicate the value.

Return value

Returns: GHashTable

The new hashtable.

 The caller of the function takes ownership of the data, and is responsible for freeing it.