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
)
Parameters
src-
Type:
GHashTableThe source hashtable.
The data is owned by the caller of the function. hash-
Type:
GHashFuncThe hash-function to use.
equal-
Type:
GEqualFuncThe hash-equal function to use.
key_d-
Type:
GDestroyNotifyThe key-destroy function to use.
value_d-
Type:
GDestroyNotifyThe value-destroy function to use.
key_dup-
Type:
GntDuplicateFuncThe function to use to duplicate the key.
value_dup-
Type:
GntDuplicateFuncThe 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. |