Function

Gnthash_table_duplicate

Declaration [src]

GHashTable*
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.

Parameters

src

Type: GHashTable

The source hashtable.

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

Type: GHashFunc

The hash-function to use.

equal

Type: GEqualFunc

The hash-equal function to use.

key_d

Type: GDestroyNotify

The key-destroy function to use.

value_d

Type: GDestroyNotify

The value-destroy function to use.

key_dup

Type: GntDuplicateFunc

The function to use to duplicate the key.

value_dup

Type: GntDuplicateFunc

The function to use to duplicate the value.

Return value

Type: GHashTable

The new hashtable.

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