static gboolean tuple_equal (gconstpointer v1, gconstpointer v2) { const pair *data1 = v1; const pair *data2 = v2; return (g_int_equal (&data1->x, &data2->x) && g_int_equal (&data1->y, &data2->y)); }
gboolean utility_int16Equal(gconstpointer value1, gconstpointer value2) { g_assert(value1 && value2); /* make sure upper bits are zero */ gint key1 = 0, key2 = 0; key1 = (gint) *((gint16*)value1); key2 = (gint) *((gint16*)value2); return g_int_equal(&key1, &key2); }
btboolean bt_int_equal(btconstpointer v1, btconstpointer v2) { return g_int_equal(v1,v2); }