const rsc_dependancy_t *rsc_constraint1 = (const rsc_dependancy_t*)a; const rsc_dependancy_t *rsc_constraint2 = (const rsc_dependancy_t*)b;
const rsc_colocation_t *rsc_constraint1 = (const rsc_colocation_t*)a; const rsc_colocation_t *rsc_constraint2 = (const rsc_colocation_t*)b;
gint sort_cons_strength(gconstpointer a, gconstpointer b){	const rsc_dependancy_t *rsc_constraint1 = (const rsc_dependancy_t*)a;	const rsc_dependancy_t *rsc_constraint2 = (const rsc_dependancy_t*)b;	if(a == NULL) { return 1; }	if(b == NULL) { return -1; }  	if(rsc_constraint1->strength > rsc_constraint2->strength) {		return 1;	}		if(rsc_constraint1->strength < rsc_constraint2->strength) {		return -1;	}	return 0;}