send_abort("Initiate a transition", NULL);
send_complete("Initiate a transition", NULL, te_update);
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_DEV, 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_devel("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_verbose("Bad sys-to %s", crm_str(sys_to));		return FALSE;			} else if(strcmp(op, CRM_OP_TRANSITION) == 0) {		crm_trace("Initializing graph...");		initialize_graph();		crm_trace("Unpacking graph...");		unpack_graph(xml_data);		crm_debug("Initiating transition...");		in_transition = TRUE;		if(initiate_transition() == FALSE) {			/* nothing to be done.. means we're done. */			crm_info("No actions to be taken..."			       " transition compelte.");		}		crm_trace("Processing complete...");			} else if(strcmp(op, CRM_OP_TEABORT) == 0) {		initialize_graph();	} else if(strcmp(op, CRM_OP_QUIT) == 0) {		crm_info("Received quit message, terminating");		exit(0);			} else if(in_transition == FALSE) {		crm_info("Received event_cc while not in a transition..."			 "  Poking the Policy Engine");		send_abort("Initiate a transition", NULL);#ifdef TESTING	} else if(strcmp(op, CRM_OP_EVENTCC) == 0) {		crm_trace("Processing %s...", CRM_OP_EVENTCC);		if(extract_event(msg) == FALSE) {			send_abort("ttest loopback", msg);		}#endif	}	crm_devel("finished processing message");	print_state(LOG_DEV);		return TRUE;}