is_node_online(xmlNodePtr node_state)
is_node_online(crm_data_t *node_state)
is_node_online(xmlNodePtr node_state) {	const char *uname      = xmlGetProp(node_state,XML_ATTR_UNAME);	const char *join_state = xmlGetProp(node_state,XML_CIB_ATTR_JOINSTATE);	const char *crm_state  = xmlGetProp(node_state,XML_CIB_ATTR_CRMDSTATE);	const char *ha_state   = xmlGetProp(node_state,XML_CIB_ATTR_HASTATE);	const char *ccm_state  = xmlGetProp(node_state,XML_CIB_ATTR_INCCM);	if(safe_str_eq(join_state, CRMD_JOINSTATE_MEMBER)	   && safe_str_eq(ha_state, ACTIVESTATUS)	   && safe_str_eq(ccm_state, XML_BOOLEAN_YES)	   && safe_str_eq(crm_state, ONLINESTATUS)) {		crm_debug("Node %s is online", uname);		return TRUE;	}	crm_debug("Node %s: %s %s %s", uname, join_state, ccm_state, crm_state);	crm_debug("Node %s is offline", uname);	return FALSE;}