new_con->id       = id; new_con->rsc_lh   = rsc_lh; new_con->rsc_rh   = rsc_rh; new_con->strength = strength;  inverted_con = invert_constraint(new_con);  crm_devel("Adding constraint %s (%p) to %s", new_con->id, new_con, rsc_lh->id);  rsc_lh->rsc_cons = g_list_insert_sorted( rsc_lh->rsc_cons, new_con, sort_cons_strength);  crm_devel("Adding constraint %s (%p) to %s", inverted_con->id, inverted_con, rsc_rh->id);  rsc_rh->rsc_cons = g_list_insert_sorted( rsc_rh->rsc_cons, inverted_con, sort_cons_strength);
rsc_colocation_new(const char *id, enum con_strength strength,		   resource_t *rsc_lh, resource_t *rsc_rh){	rsc_colocation_t *new_con      = NULL; 	rsc_colocation_t *inverted_con = NULL; 	if(rsc_lh == NULL || rsc_rh == NULL){		/* error */		return FALSE;	}	crm_malloc(new_con, sizeof(rsc_colocation_t));	if(new_con != NULL) {		new_con->id       = id;		new_con->rsc_lh   = rsc_lh;		new_con->rsc_rh   = rsc_rh;		new_con->strength = strength;				inverted_con = invert_constraint(new_con);		crm_devel("Adding constraint %s (%p) to %s",			  new_con->id, new_con, rsc_lh->id);				rsc_lh->rsc_cons = g_list_insert_sorted(			rsc_lh->rsc_cons, new_con, sort_cons_strength);				crm_devel("Adding constraint %s (%p) to %s",			  inverted_con->id, inverted_con, rsc_rh->id);		rsc_rh->rsc_cons = g_list_insert_sorted(			rsc_rh->rsc_cons, inverted_con, sort_cons_strength);	} else {		return FALSE;	}		return TRUE;}