crm_malloc(inverted_con, sizeof(rsc_dependancy_t));
crm_malloc(inverted_con, sizeof(rsc_colocation_t));
invert_constraint(rsc_dependancy_t *constraint) {	rsc_dependancy_t *inverted_con = NULL;	crm_verbose("Inverting constraint");	if(constraint == NULL) {		crm_err("Cannot invert NULL constraint");		return NULL;	}	crm_malloc(inverted_con, sizeof(rsc_dependancy_t));	if(inverted_con == NULL) {		return NULL;	}		inverted_con->id = crm_strdup(constraint->id);	inverted_con->strength = constraint->strength;	/* swap the direction */	inverted_con->rsc_lh = constraint->rsc_rh;	inverted_con->rsc_rh = constraint->rsc_lh;	crm_devel_action(		print_rsc_dependancy("Inverted constraint", inverted_con, FALSE));		return inverted_con;}