if(safe_str_eq(cl_get_string(msg, F_CRM_MSG_TYPE), XML_ATTR_RESPONSE) && safe_str_neq(op, CRM_OP_EVENTCC)) { crm_info("Message was a response not a request.  Discarding"); return TRUE; }
process_te_message(HA_Message *msg, crm_data_t *xml_data, IPC_Channel *sender){	const char *sys_to = cl_get_string(msg, F_CRM_SYS_TO);	const char *ref    = cl_get_string(msg, XML_ATTR_REFERENCE);	const char *op     = cl_get_string(msg, F_CRM_TASK);	crm_log_message(LOG_DEBUG_3, msg);		if(safe_str_eq(cl_get_string(msg, F_CRM_MSG_TYPE), XML_ATTR_RESPONSE)	   && safe_str_neq(op, CRM_OP_EVENTCC)) {		crm_info("Message was a response not a request.  Discarding");		return TRUE;	}	crm_debug("Processing %s (%s) message", op, ref);		if(op == NULL){		/* error */	} else if(strcmp(op, CRM_OP_HELLO) == 0) {		/* ignore */	} else if(sys_to == NULL || strcmp(sys_to, CRM_SYSTEM_TENGINE) != 0) {		crm_debug_2("Bad sys-to %s", crm_str(sys_to));		return FALSE;			} else if(strcmp(op, CRM_OP_TRANSITION) == 0) {		if(te_fsa_state != s_idle) {			crm_debug("Attempt to start another transition");			send_complete("Attempt to start another transition",				      NULL, te_abort, i_cancel);		} else {			te_fsa_state = te_state_matrix[i_transition][te_fsa_state];			CRM_DEV_ASSERT(te_fsa_state == s_in_transition);			initialize_graph();			unpack_graph(xml_data);						crm_debug("Initiating transition...");			if(initiate_transition() == FALSE) {				/* nothing to be done.. means we're done. */				crm_info("No actions to be taken..."					 " transition compelte.");			}		}	} else if(strcmp(op, CRM_OP_TE_HALT) == 0) {		send_complete(CRM_OP_TE_HALT, NULL, te_halt, i_cancel);	} else if(strcmp(op, CRM_OP_TEABORT) == 0) {		send_complete(CRM_OP_TEABORTED, NULL, te_abort, i_cancel);	} else if(strcmp(op, CRM_OP_QUIT) == 0) {		crm_info("Received quit message, terminating");		exit(0);		#ifdef TESTING	} else if(strcmp(op, CRM_OP_EVENTCC) == 0) {		crm_debug_4("Processing %s...", CRM_OP_EVENTCC);		if(extract_event(msg) == FALSE) {			send_complete("ttest loopback", msg,				      te_failed, i_complete);		}#endif 	} else {		crm_err("Unknown command: %s", op);	}	crm_debug_3("finished processing message");		return TRUE;}