tmp = do_pe_control(A_PE_STOP, cause, cur_state, current_input, data); if(tmp != I_NULL) next_input = I_FAIL; tmp = do_te_control(A_TE_STOP, cause, cur_state, current_input, data); if(tmp != I_NULL) next_input = I_FAIL; tmp = do_cib_control(A_CIB_STOP, cause, cur_state, current_input, data); if(tmp != I_NULL) next_input = I_FAIL;
if(is_set(fsa_input_register, R_PE_CONNECTED)) { cl_log(LOG_WARNING, "Last attempt to shutdown the PolicyEngine"); tmp = do_pe_control(A_PE_STOP, cause, cur_state, current_input, data); if(tmp != I_NULL) { next_input = I_ERROR; cl_log(LOG_ERR, "Failed to shutdown the PolicyEngine"); } }  if(is_set(fsa_input_register, R_TE_CONNECTED)) { cl_log(LOG_WARNING, "Last attempt to shutdown the Transitioner"); tmp = do_pe_control(A_TE_STOP, cause, cur_state, current_input, data); if(tmp != I_NULL) { next_input = I_ERROR; cl_log(LOG_ERR, "Failed to shutdown the Transitioner"); }  }
do_shutdown(long long action,	    enum crmd_fsa_cause cause,	    enum crmd_fsa_state cur_state,	    enum crmd_fsa_input current_input,	    void *data){	enum crmd_fsa_input next_input = I_NULL;	enum crmd_fsa_input tmp = I_NULL;		FNIN();	tmp = do_pe_control(A_PE_STOP, cause, cur_state, current_input, data);	if(tmp != I_NULL)		next_input = I_FAIL;	tmp = do_te_control(A_TE_STOP, cause, cur_state, current_input, data);	if(tmp != I_NULL)		next_input = I_FAIL;	tmp = do_cib_control(A_CIB_STOP, cause, cur_state, current_input, data);	if(tmp != I_NULL)		next_input = I_FAIL;		FNRET(next_input);}