node_rh = pe_find_node(node_list, node_id);
node_rh = pe_find_node(nodes, node_id);
process_node_lrm_state(node_t *node, xmlNodePtr lrm_state){	pdebug("here %s", __FUNCTION__);		while(lrm_state != NULL) {		const char *id    = xmlGetProp(lrm_state, "id");		const char *rsc_id    = xmlGetProp(lrm_state, "rsc_id");		const char *node_id   = xmlGetProp(lrm_state, "node_id");		const char *rsc_state = xmlGetProp(lrm_state, "rsc_state");		resource_t *rsc_lh = pe_find_resource(rsc_list, rsc_id);		rsc_lh->cur_node = node;		node->details->running_rsc =			g_slist_append(node->details->running_rsc, rsc_lh);		/* it is runnable, but depends on a stonith op 		if(safe_val3(FALSE, node, details, unclean)) {			rsc_lh->runnable = FALSE;		}		*/				if((safe_str_eq(rsc_state, "starting"))		   || (safe_str_eq(rsc_state, "started"))) {						node_t *node_rh;			rsc_to_node_t *new_cons =				cl_malloc(sizeof(rsc_to_node_t));			new_cons->id = cl_strdup(id); // genereate one			new_cons->weight = 100.0;			new_cons->modifier = inc;						new_cons->rsc_lh = rsc_lh;			node_rh = pe_find_node(node_list, node_id);						new_cons->node_list_rh = g_slist_append(NULL,								node_rh);								node_cons_list = g_slist_append(node_cons_list, new_cons);			pdebug_action(print_rsc_to_node(					      "Added", new_cons, FALSE));					} else if(safe_str_eq(rsc_state, "stop_fail")) {			// do soemthing		} // else no preference		lrm_state = lrm_state->next;	}	return TRUE;}