xmlNodePtr xml_agent = NULL;
unpack_lrm_agents(node_t *node, xmlNodePtr agent_list){	/* if the agent is not listed, remove the node from	 * the resource's list of allowed_nodes	 */	lrm_agent_t *agent   = NULL;	xmlNodePtr xml_agent = NULL;	const char *version  = NULL;	if(agent_list == NULL) {		return FALSE;	}	xml_agent = agent_list->children;		while(xml_agent != NULL){		agent = (lrm_agent_t*)crm_malloc(sizeof(lrm_agent_t));		agent->class = xmlGetProp(xml_agent, "class");		agent->type  = xmlGetProp(xml_agent, "type");		version      = xmlGetProp(xml_agent, "version");		agent->version = version?version:"0.0";		crm_trace("Adding agent %s/%s v%s to node %s",			  agent->class,			  agent->type,			  agent->version,			  node->details->uname);			  		node->details->agents = g_list_append(			node->details->agents, agent);				xml_agent = xml_agent->next;	}		return TRUE;}