HashTable.lookupExtended

Looks up a key in the GHashTable, returning the original key and the associated value and a gboolean which is TRUE if the key was found. This is useful if you need to free the memory allocated for the original key, for example before calling g_hash_table_remove(). You can actually pass NULL for lookup_key to test whether the NULL key exists, provided the hash and equal functions of hash_table are NULL-safe.

class HashTable
int
lookupExtended
(
void* lookupKey
,
void** origKey
,
void** value
)

Parameters

lookupKey void*

the key to look up

origKey void**

return location for the original key, or NULL. [allow-none]

value void**

return location for the value associated with the key, or NULL. [allow-none]

Return Value

Type: int

TRUE if the key was found in the GHashTable

Meta