equal
deleted
inserted
replaced
342 //----------------------------------------------- |
342 //----------------------------------------------- |
343 |
343 |
344 #if !defined(NO_EAP_TYPE_GSMSIM_MESSAGE_STATE_CHECK) |
344 #if !defined(NO_EAP_TYPE_GSMSIM_MESSAGE_STATE_CHECK) |
345 |
345 |
346 // |
346 // |
347 void eap_type_gsmsim_c::initialize_state( |
347 EAP_FUNC_EXPORT void eap_type_gsmsim_c::initialize_state( |
348 const eap_type_gsmsim_state_variable_e state, |
348 const eap_type_gsmsim_state_variable_e state, |
349 const bool must_be_initiator, |
349 const bool must_be_initiator, |
350 const bool must_be_responder, |
350 const bool must_be_responder, |
351 const gsmsim_subtype_e type0, |
351 const gsmsim_subtype_e type0, |
352 const gsmsim_subtype_e type1, |
352 const gsmsim_subtype_e type1, |
624 |
624 |
625 /** |
625 /** |
626 * This function saves the current m_state to m_saved_previous_state. |
626 * This function saves the current m_state to m_saved_previous_state. |
627 * The saved state is restored in error case. |
627 * The saved state is restored in error case. |
628 */ |
628 */ |
629 void eap_type_gsmsim_c::save_current_state() |
629 EAP_FUNC_EXPORT void eap_type_gsmsim_c::save_current_state() |
630 { |
630 { |
631 m_saved_previous_state = m_state; |
631 m_saved_previous_state = m_state; |
632 } |
632 } |
633 |
633 |
634 //-------------------------------------------------- |
634 //-------------------------------------------------- |
635 |
635 |
636 /** |
636 /** |
637 * This function restores the saved state. |
637 * This function restores the saved state. |
638 */ |
638 */ |
639 void eap_type_gsmsim_c::restore_saved_previous_state() |
639 EAP_FUNC_EXPORT void eap_type_gsmsim_c::restore_saved_previous_state() |
640 { |
640 { |
641 set_state(m_saved_previous_state); |
641 set_state(m_saved_previous_state); |
642 } |
642 } |
643 |
643 |
644 //-------------------------------------------------- |
644 //-------------------------------------------------- |