int lpc = 0, llpc = 0;
build_suppported_RAs(xmlNodePtr metadata_list, xmlNodePtr xml_agent_list){	int lpc = 0, llpc = 0;	GList *types            = NULL;	GList *classes          = NULL;	const char *version     = NULL;	const char *ra_data     = NULL;/*	GHashTable *metadata    = NULL; */	xmlNodePtr xml_agent    = NULL;	xmlNodePtr xml_metadata = NULL;	xmlNodePtr tmp          = NULL;	classes = fsa_lrm_conn->lrm_ops->get_rsc_class_supported(fsa_lrm_conn);	slist_iter(		class, char, classes, lpc,		types = fsa_lrm_conn->lrm_ops->get_rsc_type_supported(			fsa_lrm_conn, class);		slist_iter(			type, char, types, llpc,						version = "1";			xml_agent = create_xml_node(				xml_agent_list, "lrm_agent");						set_xml_property_copy(xml_agent, "class",       class);			set_xml_property_copy(xml_agent, XML_ATTR_TYPE, type);/*			ra_data = g_hashtable_lookup(metadata, type); */			if(ra_data != NULL) {				xml_metadata = create_xml_node(					xml_metadata, "agent_metadata");				set_xml_property_copy(					xml_metadata, "class",       class);				set_xml_property_copy(					xml_metadata, XML_ATTR_TYPE, type);				tmp = string2xml(ra_data);				if(tmp != NULL) {					xmlAddChild(xml_metadata, tmp);				}				/* extract version */			}						set_xml_property_copy(xml_agent, "version",     version);			)		g_list_free(types);		);	g_list_free(classes);	return TRUE;}