id, rsc_lh, weight_f, modifier, NULL, node_constraints);
id, rsc_lh, weight_f, TRUE, NULL, node_constraints);
unpack_rsc_to_node(xmlNodePtr xml_obj, GListPtr rsc_list, GListPtr node_list,		   GListPtr *node_constraints)	{	xmlNodePtr node_ref        = NULL;	rsc_to_node_t *new_con     = NULL;	enum con_modifier modifier = modifier_none;		const char *id_lh      = xmlGetProp(xml_obj, "from");	const char *id         = xmlGetProp(xml_obj, XML_ATTR_ID);	const char *mod        = xmlGetProp(xml_obj, "modifier");	const char *weight     = xmlGetProp(xml_obj, "weight");	resource_t *rsc_lh     = pe_find_resource(rsc_list, id_lh);	float weight_f         = atof(weight);	if(safe_str_eq(mod, "set")){		modifier = set;			} else if(safe_str_eq(mod, "inc")){		modifier = inc;			} else if(safe_str_eq(mod, "dec")){		modifier = dec;			} else {		crm_err("Unknown modifier %s", mod);	}	new_con = rsc2node_new(		id, rsc_lh, weight_f, modifier, NULL, node_constraints);	if(new_con == NULL) {		crm_err("Couldnt create con=%s for rsc=%s", id, id_lh);		return FALSE;			} else if(xml_obj != NULL) {		node_ref = xml_obj->children;	}	/*  <rsc_to_node>  <node_ref id= type= name=/>  <node_ref id= type= name=/>  <node_ref id= type= name=/>*/			while(node_ref != NULL) {		const char *xml_name = node_ref->name;		const char *id_rh = xmlGetProp(node_ref, XML_NVPAIR_ATTR_NAME);		node_t *node_rh   = pe_find_node(node_list, id_rh);		node_ref = node_ref->next;				if(node_rh == NULL) {			crm_err("node %s (from %s) not found",id_rh, xml_name);			continue;		}				new_con->node_list_rh =			g_list_append(new_con->node_list_rh, node_rh);				/* dont add it to the resource,		 *  the information is in the resouce's node list		 */	}	return TRUE;}