direct_equal


Description:

[ CCode ( cname = "g_direct_equal" ) ]
public EqualFunc<void*> direct_equal

Compares two pointer arguments and returns true if they are equal.

It can be passed to g_hash_table_new as the key_equal_func parameter, when using opaque pointers compared by pointer value as keys in a GenericSet.

This equality function is also appropriate for keys that are integers stored in pointers, such as `GINT_TO_POINTER (n)`.

Parameters:

v1

a key

v2

a key to compare with v1

Returns:

true if the two keys match.


Namespace: GLib
Package: glib-2.0