valueDiffer
fn
int valueDiffer(gobject.value.Value value1, gobject.value.Value value2)Tells if two values are equal or not, by comparing memory representations. Unlike [gda.global.valueCompare], the returned value is boolean, and gives no idea about ordering.
The two values must be of the same type, with the exception that a value of any type can be compared to a GDA_TYPE_NULL value, specifically:
<itemizedlist> <listitem><para>if value1 and value2 are both GDA_TYPE_NULL values then the returned value is 0</para></listitem> <listitem><para>if value1 is a GDA_TYPE_NULL value and value2 is of another type then the returned value is 1</para></listitem> <listitem><para>if value1 is of another type and value2 is a GDA_TYPE_NULL value then the returned value is 1</para></listitem> <listitem><para>in all other cases, value1 and value2 must be of the same type and their values are compared</para></listitem> </itemizedlist>Parameters
value1 | a #GValue to compare. |
value2 | the other #GValue to be compared to value1. |
Returns
a non 0 value if value1 and value2 differ, and 0 if they are equal