id = xmlGetProp(xml_constraints, XML_ATTR_ID); xml_obj = xml_constraints;
const char *id = xmlGetProp(xml_constraints, XML_ATTR_ID); xmlNodePtr xml_obj = xml_constraints;
unpack_constraints(xmlNodePtr xml_constraints,		   GListPtr nodes, GListPtr resources,		   GListPtr *node_constraints,		   GListPtr *action_constraints){	const char *id = NULL;	xmlNodePtr xml_obj = NULL;	crm_verbose("Begining unpack...");	while(xml_constraints != NULL) {		id = xmlGetProp(xml_constraints, XML_ATTR_ID);		xml_obj = xml_constraints;		xml_constraints = xml_constraints->next;		if(id == NULL) {			crm_err("Constraint must have an id");			continue;		}		crm_verbose("Processing constraint %s %s", xml_obj->name,id);		if(safe_str_eq("rsc_to_rsc", xml_obj->name)) {			unpack_rsc_to_rsc(xml_obj, resources,					  action_constraints);/*		} else if(safe_str_eq("rsc_to_node", xml_obj->name)) {			unpack_rsc_to_node(xml_obj, resources, nodes,					   node_constraints);					} else if(safe_str_eq("rsc_to_attr", xml_obj->name)) {			unpack_rsc_to_attr(xml_obj, resources, nodes,					   node_constraints);*/				} else if(safe_str_eq("rsc_location", xml_obj->name)) {			unpack_rsc_location(xml_obj, resources, nodes,					    node_constraints);		} else {			crm_err("Unsupported constraint type: %s",				xml_obj->name);		}	}	return TRUE;}