23 #define _GSMSIM_RETRANSMISSION_H_ |
23 #define _GSMSIM_RETRANSMISSION_H_ |
24 |
24 |
25 //#include "eap_am_memory.h" |
25 //#include "eap_am_memory.h" |
26 #include "eap_tools.h" |
26 #include "eap_tools.h" |
27 #include "eap_am_export.h" |
27 #include "eap_am_export.h" |
|
28 // Start: added by script change_export_macros.sh. |
|
29 #if defined(EAP_NO_EXPORT_EAP_CORE_RETRANSMISSION_H) |
|
30 #define EAP_CLASS_VISIBILITY_EAP_CORE_RETRANSMISSION_H EAP_NONSHARABLE |
|
31 #define EAP_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H |
|
32 #define EAP_C_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H |
|
33 #define EAP_FUNC_EXPORT_EAP_CORE_RETRANSMISSION_H |
|
34 #define EAP_C_FUNC_EXPORT_EAP_CORE_RETRANSMISSION_H |
|
35 #elif defined(EAP_EXPORT_EAP_CORE_RETRANSMISSION_H) |
|
36 #define EAP_CLASS_VISIBILITY_EAP_CORE_RETRANSMISSION_H EAP_EXPORT |
|
37 #define EAP_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H EAP_FUNC_EXPORT |
|
38 #define EAP_C_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H EAP_C_FUNC_EXPORT |
|
39 #define EAP_FUNC_EXPORT_EAP_CORE_RETRANSMISSION_H EAP_FUNC_EXPORT |
|
40 #define EAP_C_FUNC_EXPORT_EAP_CORE_RETRANSMISSION_H EAP_C_FUNC_EXPORT |
|
41 #else |
|
42 #define EAP_CLASS_VISIBILITY_EAP_CORE_RETRANSMISSION_H EAP_IMPORT |
|
43 #define EAP_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H EAP_FUNC_IMPORT |
|
44 #define EAP_C_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H EAP_C_FUNC_IMPORT |
|
45 #define EAP_FUNC_EXPORT_EAP_CORE_RETRANSMISSION_H |
|
46 #define EAP_C_FUNC_EXPORT_EAP_CORE_RETRANSMISSION_H |
|
47 #endif |
|
48 // End: added by script change_export_macros.sh. |
28 #include "abs_eap_am_crypto.h" |
49 #include "abs_eap_am_crypto.h" |
29 #include "eap_variable_data.h" |
50 #include "eap_variable_data.h" |
30 |
51 |
31 /** |
52 /** |
32 * This class stores the information of re-transmission of EAP-packet. |
53 * This class stores the information of re-transmission of EAP-packet. |
33 * @{ Add more comments. } |
54 * @{ Add more comments. } |
34 */ |
55 */ |
35 class EAP_EXPORT eap_core_retransmission_c |
56 class EAP_CLASS_VISIBILITY_EAP_CORE_RETRANSMISSION_H eap_core_retransmission_c |
36 { |
57 { |
37 private: |
58 private: |
38 |
59 |
39 abs_eap_am_tools_c * const m_am_tools; |
60 abs_eap_am_tools_c * const m_am_tools; |
40 |
61 |
52 u8_t m_eap_identifier; |
73 u8_t m_eap_identifier; |
53 eap_type_value_e m_eap_type; |
74 eap_type_value_e m_eap_type; |
54 |
75 |
55 public: |
76 public: |
56 |
77 |
57 EAP_FUNC_IMPORT virtual ~eap_core_retransmission_c(); |
78 EAP_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H virtual ~eap_core_retransmission_c(); |
58 |
79 |
59 EAP_FUNC_IMPORT eap_core_retransmission_c( |
80 EAP_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H eap_core_retransmission_c( |
60 abs_eap_am_tools_c * const tools, |
81 abs_eap_am_tools_c * const tools, |
61 const eap_am_network_id_c * const send_network_id, |
82 const eap_am_network_id_c * const send_network_id, |
62 eap_buf_chain_wr_c * const sent_packet, |
83 eap_buf_chain_wr_c * const sent_packet, |
63 const u32_t header_offset, |
84 const u32_t header_offset, |
64 const u32_t data_length, |
85 const u32_t data_length, |
66 const u32_t retransmission_counter, |
87 const u32_t retransmission_counter, |
67 const eap_code_value_e eap_code, |
88 const eap_code_value_e eap_code, |
68 const u8_t eap_identifier, |
89 const u8_t eap_identifier, |
69 const eap_type_value_e eap_type); |
90 const eap_type_value_e eap_type); |
70 |
91 |
71 EAP_FUNC_IMPORT bool get_is_valid() const; |
92 EAP_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H bool get_is_valid() const; |
72 |
93 |
73 EAP_FUNC_IMPORT u32_t get_next_retransmission_counter(); |
94 EAP_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H u32_t get_next_retransmission_counter(); |
74 |
95 |
75 EAP_FUNC_IMPORT u32_t get_retransmission_counter() const; |
96 EAP_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H u32_t get_retransmission_counter() const; |
76 |
97 |
77 EAP_FUNC_IMPORT u32_t get_next_retransmission_time(); |
98 EAP_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H u32_t get_next_retransmission_time(); |
78 |
99 |
79 EAP_FUNC_IMPORT eap_am_network_id_c *get_send_network_id(); |
100 EAP_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H eap_am_network_id_c *get_send_network_id(); |
80 |
101 |
81 EAP_FUNC_IMPORT eap_buf_chain_wr_c * get_sent_packet() const; |
102 EAP_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H eap_buf_chain_wr_c * get_sent_packet() const; |
82 |
103 |
83 EAP_FUNC_IMPORT u32_t get_header_offset() const; |
104 EAP_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H u32_t get_header_offset() const; |
84 |
105 |
85 EAP_FUNC_IMPORT u32_t get_data_length() const; |
106 EAP_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H u32_t get_data_length() const; |
86 |
107 |
87 EAP_FUNC_IMPORT u32_t get_buffer_size() const; |
108 EAP_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H u32_t get_buffer_size() const; |
88 |
109 |
89 EAP_FUNC_IMPORT eap_code_value_e get_eap_code() const; |
110 EAP_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H eap_code_value_e get_eap_code() const; |
90 |
111 |
91 EAP_FUNC_IMPORT u8_t get_eap_identifier() const; |
112 EAP_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H u8_t get_eap_identifier() const; |
92 |
113 |
93 EAP_FUNC_IMPORT eap_type_value_e get_eap_type() const; |
114 EAP_FUNC_VISIBILITY_EAP_CORE_RETRANSMISSION_H eap_type_value_e get_eap_type() const; |
94 }; |
115 }; |
95 |
116 |
96 |
117 |
97 #endif //#if !defined(_GSMSIM_RETRANSMISSION_H_) |
118 #endif //#if !defined(_GSMSIM_RETRANSMISSION_H_) |
98 |
119 |