const char *op       = xmlGetProp(options, XML_ATTR_OP);
do_cib_invoke(long long action,	      enum crmd_fsa_cause cause,	      enum crmd_fsa_state cur_state,	      enum crmd_fsa_input current_input,	      void *data){	xmlNodePtr cib_msg = NULL;	xmlNodePtr answer = NULL;	xmlNodePtr new_options = NULL;	const char *section = NULL;	enum crmd_fsa_input result = I_NULL;	if(data != NULL) {		cib_msg = (xmlNodePtr)data;	}			if(action & A_CIB_INVOKE) {		const char *op = get_xml_attr(			cib_msg, XML_TAG_OPTIONS, XML_ATTR_OP, TRUE);		const char *sys_from = xmlGetProp(cib_msg, XML_ATTR_SYSFROM);		xml_message_debug(cib_msg, "[CIB] Invoking with");		if(cib_msg == NULL) {			crm_err("No message for CIB command");			return I_NULL; // I_ERROR		} else if(op == NULL) {			xml_message_debug(cib_msg, "Invalid CIB Message");			return I_NULL; // I_ERROR		}		set_xml_property_copy(cib_msg, XML_ATTR_SYSTO, "cib");		answer = process_cib_message(cib_msg, TRUE);		// the TENGINE will get CC'd by other means.		if(sys_from != NULL		   && safe_str_neq(sys_from, CRM_SYSTEM_TENGINE) 		   && safe_str_neq(sys_from, CRM_SYSTEM_CRMD)		   && safe_str_neq(sys_from, CRM_SYSTEM_DC)		   && relay_message(answer, TRUE) == FALSE) {			crm_err("Confused what to do with cib result");			xml_message_debug(answer, "Couldnt route: ");			result = I_ERROR;		} else if(AM_I_DC			  && (strcmp(op, CRM_OP_CREATE) == 0			      || strcmp(op, CRM_OP_UPDATE) == 0			      || strcmp(op, CRM_OP_DELETE) == 0			      || strcmp(op, CRM_OP_REPLACE) == 0			      || strcmp(op, CRM_OP_WELCOME) == 0			      || strcmp(op, CRM_OP_SHUTDOWN_REQ) == 0			      || strcmp(op, CRM_OP_ERASE) == 0)) {			result = I_CIB_UPDATE;	#if 0		// check the answer, see if we are interested in it also		} else if(interested in reply) {			put_message(answer);			result = I_REQUEST;#endif		}		free_xml(answer);		return result;	/* experimental */	} else if(action & A_CIB_INVOKE_LOCAL) {		xml_message_debug(cib_msg, "[CIB] Invoking with");		if(cib_msg == NULL) {			crm_err("No message for CIB command");			return I_NULL; // I_ERROR		}				answer = process_cib_message(cib_msg, TRUE);		put_message(answer);		return I_REQUEST;	} else if(action & A_CIB_BUMPGEN) {   		// check if the response was ok before next bit		section = get_xml_attr(cib_msg, XML_TAG_OPTIONS,				       XML_ATTR_FILTER_TYPE, FALSE);				/* set the section so that we dont always send the		 * whole thing		 */		if(section != NULL) {			new_options = set_xml_attr(NULL, XML_TAG_OPTIONS,						   XML_ATTR_FILTER_TYPE,						   section, TRUE);		}				answer = process_cib_request(CRM_OP_BUMP,					     new_options, NULL);		free_xml(new_options);		if(answer == NULL) {			crm_err("Result of BUMP in %s was NULL",			       __FUNCTION__);			return I_FAIL;		}		send_request(NULL, answer, CRM_OP_REPLACE,			     NULL, CRM_SYSTEM_CRMD, NULL);				free_xml(answer);	} else {		crm_err("Unexpected action %s in %s",		       fsa_action2string(action), __FUNCTION__);	}			return I_NULL;}