new_rsc->constraints = NULL;
new_rsc->rsc_cons = NULL; new_rsc->node_cons = NULL;
unpack_resources(xmlNodePtr resources){	pdebug("Begining unpack... %s", __FUNCTION__);	while(resources != NULL) {		xmlNodePtr xml_obj = resources;		const char *id = xmlGetProp(xml_obj, "id");		const char *priority = xmlGetProp(xml_obj, "priority");		float priority_f = atof(priority);		resources = resources->next;		pdebug("Processing resource...");				if(id == NULL) {			cl_log(LOG_ERR, "Must specify id tag in <resource>");			continue;		}		resource_t *new_rsc = cl_malloc(sizeof(resource_t));		new_rsc->xml = xml_obj; // copy first 		new_rsc->priority = priority_f; 		new_rsc->candidate_colors = NULL;		new_rsc->color = NULL; 		new_rsc->runnable = TRUE; 		new_rsc->provisional = TRUE; 		new_rsc->allowed_nodes = node_list_dup(node_list);    		new_rsc->constraints = NULL; 		new_rsc->id = cl_strdup(id);		pdebug_action(print_resource("Added", new_rsc, FALSE));		rsc_list = g_slist_append(rsc_list, new_rsc);	}	rsc_list = g_slist_sort(rsc_list, sort_rsc_priority);	return TRUE;}