fsa_data 340 crmd/control.c fsa_data_t *fsa_data = gIter->data; fsa_data 343 crmd/control.c fsa_input2string(fsa_data->fsa_input), fsa_data 345 crmd/control.c fsa_cause2string(fsa_data->fsa_cause), fsa_data->origin); fsa_data 346 crmd/control.c delete_fsa_input(fsa_data); fsa_data 36 crmd/crmd_messages.h extern void *fsa_typed_data_adv(fsa_data_t * fsa_data, enum fsa_data_type a_type, fsa_data 80 crmd/crmd_messages.h void delete_fsa_input(fsa_data_t * fsa_data); fsa_data 86 crmd/fsa.c void s_crmd_fsa_actions(fsa_data_t * fsa_data); fsa_data 135 crmd/fsa.c do_fsa_action(fsa_data_t * fsa_data, long long an_action, fsa_data 143 crmd/fsa.c function(an_action, fsa_data->fsa_cause, fsa_state, fsa_data->fsa_input, fsa_data); fsa_data 153 crmd/fsa.c fsa_data_t *fsa_data = NULL; fsa_data 166 crmd/fsa.c fsa_data = calloc(1, sizeof(fsa_data_t)); fsa_data 167 crmd/fsa.c fsa_data->fsa_input = I_NULL; fsa_data 168 crmd/fsa.c fsa_data->fsa_cause = C_FSA_INTERNAL; fsa_data 169 crmd/fsa.c fsa_data->origin = __FUNCTION__; fsa_data 170 crmd/fsa.c fsa_data->data_type = fsa_dt_none; fsa_data 171 crmd/fsa.c fsa_message_queue = g_list_append(fsa_message_queue, fsa_data); fsa_data 172 crmd/fsa.c fsa_data = NULL; fsa_data 177 crmd/fsa.c fsa_data = get_message(); fsa_data 178 crmd/fsa.c if(fsa_data == NULL) { fsa_data 182 crmd/fsa.c log_fsa_input(fsa_data); fsa_data 185 crmd/fsa.c fsa_actions |= fsa_data->actions; fsa_data 186 crmd/fsa.c fsa_dump_actions(fsa_data->actions, "Restored actions"); fsa_data 189 crmd/fsa.c new_actions = crmd_fsa_actions[fsa_data->fsa_input][fsa_state]; fsa_data 193 crmd/fsa.c if (fsa_data->fsa_input != I_NULL && fsa_data->fsa_input != I_ROUTER) { fsa_data 195 crmd/fsa.c fsa_input2string(fsa_data->fsa_input), fsa_data 197 crmd/fsa.c fsa_cause2string(fsa_data->fsa_cause), fsa_data->origin); fsa_data 202 crmd/fsa.c do_fsa_action(fsa_data, A_ERROR, do_log); fsa_data 205 crmd/fsa.c do_fsa_action(fsa_data, A_WARN, do_log); fsa_data 208 crmd/fsa.c do_fsa_action(fsa_data, A_LOG, do_log); fsa_data 213 crmd/fsa.c fsa_state = crmd_fsa_state[fsa_data->fsa_input][fsa_state]; fsa_data 227 crmd/fsa.c fsa_actions = do_state_transition(fsa_actions, last_state, fsa_state, fsa_data); fsa_data 232 crmd/fsa.c fsa_cause2string(fsa_data->fsa_cause), fsa_data 233 crmd/fsa.c fsa_input2string(fsa_data->fsa_input), fsa_data->origin, fsa_data->id); fsa_data 237 crmd/fsa.c s_crmd_fsa_actions(fsa_data); fsa_data 238 crmd/fsa.c delete_fsa_input(fsa_data); fsa_data 239 crmd/fsa.c fsa_data = NULL; fsa_data 264 crmd/fsa.c s_crmd_fsa_actions(fsa_data_t * fsa_data) fsa_data 270 crmd/fsa.c CRM_CHECK(fsa_data != NULL, return); fsa_data 279 crmd/fsa.c do_fsa_action(fsa_data, A_ERROR, do_log); fsa_data 281 crmd/fsa.c do_fsa_action(fsa_data, A_WARN, do_log); fsa_data 283 crmd/fsa.c do_fsa_action(fsa_data, A_LOG, do_log); fsa_data 287 crmd/fsa.c do_fsa_action(fsa_data, A_EXIT_1, do_exit); fsa_data 291 crmd/fsa.c do_fsa_action(fsa_data, O_LRM_RECONNECT, do_lrm_control); fsa_data 293 crmd/fsa.c do_fsa_action(fsa_data, O_CIB_RESTART, do_cib_control); fsa_data 295 crmd/fsa.c do_fsa_action(fsa_data, O_PE_RESTART, do_pe_control); fsa_data 297 crmd/fsa.c do_fsa_action(fsa_data, O_TE_RESTART, do_te_control); fsa_data 301 crmd/fsa.c do_fsa_action(fsa_data, A_STARTUP, do_startup); fsa_data 303 crmd/fsa.c do_fsa_action(fsa_data, A_CIB_START, do_cib_control); fsa_data 305 crmd/fsa.c do_fsa_action(fsa_data, A_HA_CONNECT, do_ha_control); fsa_data 307 crmd/fsa.c do_fsa_action(fsa_data, A_READCONFIG, do_read_config); fsa_data 311 crmd/fsa.c do_fsa_action(fsa_data, A_LRM_CONNECT, do_lrm_control); fsa_data 315 crmd/fsa.c do_fsa_action(fsa_data, A_CCM_CONNECT, do_ccm_control); fsa_data 321 crmd/fsa.c do_fsa_action(fsa_data, A_TE_START, do_te_control); fsa_data 323 crmd/fsa.c do_fsa_action(fsa_data, A_PE_START, do_pe_control); fsa_data 329 crmd/fsa.c do_fsa_action(fsa_data, A_DC_TIMER_STOP, do_timer_control); fsa_data 331 crmd/fsa.c do_fsa_action(fsa_data, A_INTEGRATE_TIMER_STOP, do_timer_control); fsa_data 333 crmd/fsa.c do_fsa_action(fsa_data, A_INTEGRATE_TIMER_START, do_timer_control); fsa_data 335 crmd/fsa.c do_fsa_action(fsa_data, A_FINALIZE_TIMER_STOP, do_timer_control); fsa_data 337 crmd/fsa.c do_fsa_action(fsa_data, A_FINALIZE_TIMER_START, do_timer_control); fsa_data 343 crmd/fsa.c do_fsa_action(fsa_data, A_MSG_ROUTE, do_msg_route); fsa_data 345 crmd/fsa.c do_fsa_action(fsa_data, A_RECOVER, do_recover); fsa_data 347 crmd/fsa.c do_fsa_action(fsa_data, A_CL_JOIN_RESULT, do_cl_join_finalize_respond); fsa_data 349 crmd/fsa.c do_fsa_action(fsa_data, A_CL_JOIN_REQUEST, do_cl_join_offer_respond); fsa_data 351 crmd/fsa.c do_fsa_action(fsa_data, A_SHUTDOWN_REQ, do_shutdown_req); fsa_data 353 crmd/fsa.c do_fsa_action(fsa_data, A_ELECTION_VOTE, do_election_vote); fsa_data 355 crmd/fsa.c do_fsa_action(fsa_data, A_ELECTION_COUNT, do_election_count_vote); fsa_data 357 crmd/fsa.c do_fsa_action(fsa_data, A_LRM_EVENT, do_lrm_event); fsa_data 363 crmd/fsa.c do_fsa_action(fsa_data, A_STARTED, do_started); fsa_data 365 crmd/fsa.c do_fsa_action(fsa_data, A_CL_JOIN_QUERY, do_cl_join_query); fsa_data 367 crmd/fsa.c do_fsa_action(fsa_data, A_DC_TIMER_START, do_timer_control); fsa_data 374 crmd/fsa.c do_fsa_action(fsa_data, A_DC_TAKEOVER, do_dc_takeover); fsa_data 376 crmd/fsa.c do_fsa_action(fsa_data, A_DC_RELEASE, do_dc_release); fsa_data 378 crmd/fsa.c do_fsa_action(fsa_data, A_DC_JOIN_FINAL, do_dc_join_final); fsa_data 380 crmd/fsa.c do_fsa_action(fsa_data, A_ELECTION_CHECK, do_election_check); fsa_data 382 crmd/fsa.c do_fsa_action(fsa_data, A_ELECTION_START, do_election_vote); fsa_data 384 crmd/fsa.c do_fsa_action(fsa_data, A_DC_JOIN_OFFER_ALL, do_dc_join_offer_all); fsa_data 386 crmd/fsa.c do_fsa_action(fsa_data, A_DC_JOIN_OFFER_ONE, do_dc_join_offer_one); fsa_data 388 crmd/fsa.c do_fsa_action(fsa_data, A_DC_JOIN_PROCESS_REQ, do_dc_join_filter_offer); fsa_data 390 crmd/fsa.c do_fsa_action(fsa_data, A_DC_JOIN_PROCESS_ACK, do_dc_join_ack); fsa_data 392 crmd/fsa.c do_fsa_action(fsa_data, A_DC_JOIN_FINALIZE, do_dc_join_finalize); fsa_data 394 crmd/fsa.c do_fsa_action(fsa_data, A_CL_JOIN_ANNOUNCE, do_cl_join_announce); fsa_data 402 crmd/fsa.c do_fsa_action(fsa_data, A_TE_HALT, do_te_invoke); fsa_data 404 crmd/fsa.c do_fsa_action(fsa_data, A_TE_CANCEL, do_te_invoke); fsa_data 406 crmd/fsa.c do_fsa_action(fsa_data, A_LRM_INVOKE, do_lrm_invoke); fsa_data 408 crmd/fsa.c do_fsa_action(fsa_data, A_PE_INVOKE, do_pe_invoke); fsa_data 410 crmd/fsa.c do_fsa_action(fsa_data, A_TE_INVOKE, do_te_invoke); fsa_data 414 crmd/fsa.c do_fsa_action(fsa_data, A_DC_RELEASED, do_dc_release); fsa_data 416 crmd/fsa.c do_fsa_action(fsa_data, A_PE_STOP, do_pe_control); fsa_data 418 crmd/fsa.c do_fsa_action(fsa_data, A_TE_STOP, do_te_control); fsa_data 420 crmd/fsa.c do_fsa_action(fsa_data, A_SHUTDOWN, do_shutdown); fsa_data 422 crmd/fsa.c do_fsa_action(fsa_data, A_LRM_DISCONNECT, do_lrm_control); fsa_data 426 crmd/fsa.c do_fsa_action(fsa_data, A_CCM_DISCONNECT, do_ccm_control); fsa_data 432 crmd/fsa.c do_fsa_action(fsa_data, A_HA_DISCONNECT, do_ha_control); fsa_data 434 crmd/fsa.c do_fsa_action(fsa_data, A_CIB_STOP, do_cib_control); fsa_data 436 crmd/fsa.c do_fsa_action(fsa_data, A_STOP, do_stop); fsa_data 440 crmd/fsa.c do_fsa_action(fsa_data, A_EXIT_0, do_exit); fsa_data 446 crmd/fsa.c register_fsa_error_adv(C_FSA_INTERNAL, I_ERROR, fsa_data, NULL, __FUNCTION__); fsa_data 79 crmd/messages.c fsa_data_t *fsa_data = NULL; fsa_data 115 crmd/messages.c fsa_data = calloc(1, sizeof(fsa_data_t)); fsa_data 116 crmd/messages.c fsa_data->id = last_data_id; fsa_data 117 crmd/messages.c fsa_data->fsa_input = input; fsa_data 118 crmd/messages.c fsa_data->fsa_cause = cause; fsa_data 119 crmd/messages.c fsa_data->origin = raised_from; fsa_data 120 crmd/messages.c fsa_data->data = NULL; fsa_data 121 crmd/messages.c fsa_data->data_type = fsa_dt_none; fsa_data 122 crmd/messages.c fsa_data->actions = with_actions; fsa_data 138 crmd/messages.c fsa_data->data = copy_ha_msg_input(data); fsa_data 139 crmd/messages.c fsa_data->data_type = fsa_dt_ha_msg; fsa_data 145 crmd/messages.c fsa_data->data = lrmd_copy_event((lrmd_event_data_t *) data); fsa_data 146 crmd/messages.c fsa_data->data_type = fsa_dt_lrm; fsa_data 164 crmd/messages.c crm_trace("%s data copied", fsa_cause2string(fsa_data->fsa_cause)); fsa_data 170 crmd/messages.c fsa_message_queue = g_list_prepend(fsa_message_queue, fsa_data); fsa_data 172 crmd/messages.c fsa_message_queue = g_list_append(fsa_message_queue, fsa_data); fsa_data 228 crmd/messages.c delete_fsa_input(fsa_data_t * fsa_data) fsa_data 233 crmd/messages.c if (fsa_data == NULL) { fsa_data 236 crmd/messages.c crm_trace("About to free %s data", fsa_cause2string(fsa_data->fsa_cause)); fsa_data 238 crmd/messages.c if (fsa_data->data != NULL) { fsa_data 239 crmd/messages.c switch (fsa_data->data_type) { fsa_data 241 crmd/messages.c delete_ha_msg_input(fsa_data->data); fsa_data 245 crmd/messages.c foo = fsa_data->data; fsa_data 250 crmd/messages.c op = (lrmd_event_data_t *) fsa_data->data; fsa_data 255 crmd/messages.c if (fsa_data->data != NULL) { fsa_data 257 crmd/messages.c fsa_cause2string(fsa_data->fsa_cause), fsa_data->origin); fsa_data 262 crmd/messages.c crm_trace("%s data freed", fsa_cause2string(fsa_data->fsa_cause)); fsa_data 265 crmd/messages.c free(fsa_data); fsa_data 287 crmd/messages.c fsa_typed_data_adv(fsa_data_t * fsa_data, enum fsa_data_type a_type, const char *caller) fsa_data 291 crmd/messages.c if (fsa_data == NULL) { fsa_data 294 crmd/messages.c } else if (fsa_data->data == NULL) { fsa_data 295 crmd/messages.c crm_err("%s: No message data available. Origin: %s", caller, fsa_data->origin); fsa_data 297 crmd/messages.c } else if (fsa_data->data_type != a_type) { fsa_data 299 crmd/messages.c caller, fsa_data->data_type, a_type, fsa_data->origin); fsa_data 300 crmd/messages.c CRM_ASSERT(fsa_data->data_type == a_type); fsa_data 302 crmd/messages.c ret_val = fsa_data->data; fsa_data 984 crmd/messages.c fsa_data_t fsa_data; fsa_data 990 crmd/messages.c fsa_data.id = 0; fsa_data 991 crmd/messages.c fsa_data.actions = 0; fsa_data 992 crmd/messages.c fsa_data.data = &fsa_input; fsa_data 993 crmd/messages.c fsa_data.fsa_input = I_MESSAGE; fsa_data 994 crmd/messages.c fsa_data.fsa_cause = C_IPC_MESSAGE; fsa_data 995 crmd/messages.c fsa_data.origin = __FUNCTION__; fsa_data 996 crmd/messages.c fsa_data.data_type = fsa_dt_ha_msg; fsa_data 1001 crmd/messages.c do_lrm_invoke(A_LRM_INVOKE, C_IPC_MESSAGE, fsa_state, I_MESSAGE, &fsa_data);