crm_malloc(new_rsc, sizeof(resource_t));  if(new_rsc == NULL) { return FALSE; }  new_rsc->id	 = id; new_rsc->xml	 = xml_obj; new_rsc->variant = get_resource_type(xml_obj->name); new_rsc->fns     = &resource_class_functions[new_rsc->variant];  new_rsc->fns->unpack(new_rsc);  *resources = g_list_append(*resources, new_rsc);  crm_debug_action(print_resource("Added", new_rsc, FALSE)); 
unpack_resources(xmlNodePtr xml_resources,		 GListPtr *resources,		 GListPtr *actions,		 GListPtr *ordering_constraints,		 GListPtr all_nodes){	crm_verbose("Begining unpack...");	xml_child_iter(		xml_resources, xml_obj, XML_CIB_TAG_RESOURCE,		const char *id         = xmlGetProp(xml_obj, XML_ATTR_ID);		resource_t *new_rsc = NULL;		crm_verbose("Processing resource...");				if(id == NULL) {			crm_err("Must specify id tag in <resource>");			continue;		}		crm_malloc(new_rsc, sizeof(resource_t));		if(new_rsc == NULL) {			return FALSE;		}				new_rsc->id	 = id;		new_rsc->xml	 = xml_obj;		new_rsc->variant = get_resource_type(xml_obj->name);		new_rsc->fns     = &resource_class_functions[new_rsc->variant];		new_rsc->fns->unpack(new_rsc);				*resources = g_list_append(*resources, new_rsc);			crm_debug_action(print_resource("Added", new_rsc, FALSE));		);		*resources = g_list_sort(*resources, sort_rsc_priority);	return TRUE;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/c0fb1afe666fb3834a20f08b886df6140b851e04/unpack.c/clean/crm/pengine/unpack.c