const char *last_op   = NULL; resource_t *rsc_lh    = NULL;
unpack_lrm_rsc_state(node_t *node, crm_data_t * lrm_rsc_list,		     GListPtr rsc_list, GListPtr nodes,		     GListPtr *actions, GListPtr *placement_constraints){	const char *rsc_id    = NULL;	const char *node_id   = node->details->uname;	const char *rsc_state = NULL;	const char *last_op   = NULL;	resource_t *rsc_lh    = NULL;	CRM_DEV_ASSERT(node != NULL);	if(crm_assert_failed) {		return FALSE;	}		xml_child_iter(		lrm_rsc_list, rsc_entry, XML_LRM_TAG_RESOURCE,				rsc_id    = crm_element_value(rsc_entry, XML_ATTR_ID);		rsc_state = crm_element_value(rsc_entry, XML_LRM_ATTR_RSCSTATE);		last_op   = crm_element_value(rsc_entry, XML_LRM_ATTR_LASTOP);				rsc_lh    = pe_find_resource(rsc_list, rsc_id);		crm_verbose("[%s] Processing %s on %s (%s)",			    crm_element_name(rsc_entry), rsc_id, node_id, rsc_state);		if(rsc_lh == NULL) {			crm_err("Could not find a match for resource"				" %s in %s's status section",				rsc_id, node_id);			crm_xml_debug(rsc_entry, "Invalid status entry");			continue;		}		xml_child_iter(			rsc_entry, rsc_op, XML_LRM_TAG_RSC_OP,			unpack_rsc_op(rsc_lh, last_op, rsc_state, node, rsc_op,				      placement_constraints);			);		);		return TRUE;}