static gint transform_entries_cmp (gconstpointer bsearch_node1, gconstpointer bsearch_node2) { const TransformEntry *e1 = bsearch_node1; const TransformEntry *e2 = bsearch_node2; gint cmp = G_BSEARCH_ARRAY_CMP (e1->src_type, e2->src_type); if (cmp) return cmp; else return G_BSEARCH_ARRAY_CMP (e1->dest_type, e2->dest_type); }
/* --- functions --- */ static gint boxed_nodes_cmp (gconstpointer p1, gconstpointer p2) { const BoxedNode *node1 = p1, *node2 = p2; return G_BSEARCH_ARRAY_CMP (node1->type, node2->type); }