rsc_to_rsc_t *new_con      = NULL; rsc_to_rsc_t *inverted_con = NULL;
rsc2rsc_new(const char *id, enum con_strength strength, enum rsc_con_type type,	    resource_t *rsc_lh, resource_t *rsc_rh){	rsc_to_rsc_t *new_con      = NULL;	rsc_to_rsc_t *inverted_con = NULL;	if(rsc_lh == NULL || rsc_rh == NULL){		// error		return FALSE;	}	new_con      = crm_malloc(sizeof(rsc_to_rsc_t));	new_con->id       = id;	new_con->rsc_lh   = rsc_lh;	new_con->rsc_rh   = rsc_rh;	new_con->strength = strength;	new_con->variant  = type;		inverted_con = invert_constraint(new_con);	rsc_lh->rsc_cons = g_list_insert_sorted(		rsc_lh->rsc_cons, new_con, sort_cons_strength);		rsc_rh->rsc_cons = g_list_insert_sorted(		rsc_rh->rsc_cons, inverted_con, sort_cons_strength);	return TRUE;}