25 #define _EAP_HANDLE_H_ |
25 #define _EAP_HANDLE_H_ |
26 |
26 |
27 #include "eap_am_types.h" |
27 #include "eap_am_types.h" |
28 #include "eap_am_network_id.h" |
28 #include "eap_am_network_id.h" |
29 #include "eap_am_export.h" |
29 #include "eap_am_export.h" |
|
30 // Start: added by script change_export_macros.sh. |
|
31 #if defined(EAP_NO_EXPORT_EAP_HANDLE_H) |
|
32 #define EAP_CLASS_VISIBILITY_EAP_HANDLE_H EAP_NONSHARABLE |
|
33 #define EAP_FUNC_VISIBILITY_EAP_HANDLE_H |
|
34 #define EAP_C_FUNC_VISIBILITY_EAP_HANDLE_H |
|
35 #define EAP_FUNC_EXPORT_EAP_HANDLE_H |
|
36 #define EAP_C_FUNC_EXPORT_EAP_HANDLE_H |
|
37 #elif defined(EAP_EXPORT_EAP_HANDLE_H) |
|
38 #define EAP_CLASS_VISIBILITY_EAP_HANDLE_H EAP_EXPORT |
|
39 #define EAP_FUNC_VISIBILITY_EAP_HANDLE_H EAP_FUNC_EXPORT |
|
40 #define EAP_C_FUNC_VISIBILITY_EAP_HANDLE_H EAP_C_FUNC_EXPORT |
|
41 #define EAP_FUNC_EXPORT_EAP_HANDLE_H EAP_FUNC_EXPORT |
|
42 #define EAP_C_FUNC_EXPORT_EAP_HANDLE_H EAP_C_FUNC_EXPORT |
|
43 #else |
|
44 #define EAP_CLASS_VISIBILITY_EAP_HANDLE_H EAP_IMPORT |
|
45 #define EAP_FUNC_VISIBILITY_EAP_HANDLE_H EAP_FUNC_IMPORT |
|
46 #define EAP_C_FUNC_VISIBILITY_EAP_HANDLE_H EAP_C_FUNC_IMPORT |
|
47 #define EAP_FUNC_EXPORT_EAP_HANDLE_H |
|
48 #define EAP_C_FUNC_EXPORT_EAP_HANDLE_H |
|
49 #endif |
|
50 // End: added by script change_export_macros.sh. |
30 #include "abs_eap_am_tools.h" |
51 #include "abs_eap_am_tools.h" |
31 //#include "eap_am_memory.h" |
52 //#include "eap_am_memory.h" |
32 #include "eap_am_assert.h" |
53 #include "eap_am_assert.h" |
33 #include "eap_header.h" |
54 #include "eap_header.h" |
34 #include "eap_status.h" |
55 #include "eap_status.h" |
35 |
56 |
36 //-------------------------------------------------- |
57 //-------------------------------------------------- |
37 |
58 |
38 /// This class stores connection information of one session. |
59 /// This class stores connection information of one session. |
39 class EAP_EXPORT eap_handle_c |
60 class EAP_CLASS_VISIBILITY_EAP_HANDLE_H eap_handle_c |
40 : public eap_variable_data_c |
61 : public eap_variable_data_c |
41 { |
62 { |
42 private: |
63 private: |
43 |
64 |
44 eap_am_network_id_c m_send_network_id; |
65 eap_am_network_id_c m_send_network_id; |
45 |
66 |
46 eap_type_value_e m_eap_type; |
67 eap_type_value_e m_eap_type; |
47 |
68 |
48 public: |
69 public: |
49 |
70 |
50 EAP_FUNC_IMPORT virtual ~eap_handle_c(); |
71 EAP_FUNC_VISIBILITY_EAP_HANDLE_H virtual ~eap_handle_c(); |
51 |
72 |
52 EAP_FUNC_IMPORT eap_handle_c( |
73 EAP_FUNC_VISIBILITY_EAP_HANDLE_H eap_handle_c( |
53 abs_eap_am_tools_c * const tools); |
74 abs_eap_am_tools_c * const tools); |
54 |
75 |
55 EAP_FUNC_IMPORT eap_handle_c( |
76 EAP_FUNC_VISIBILITY_EAP_HANDLE_H eap_handle_c( |
56 abs_eap_am_tools_c * const tools, |
77 abs_eap_am_tools_c * const tools, |
57 eap_variable_data_c * const selector, |
78 eap_variable_data_c * const selector, |
58 const eap_am_network_id_c * const network_id, |
79 const eap_am_network_id_c * const network_id, |
59 const eap_type_value_e p_eap_type); |
80 const eap_type_value_e p_eap_type); |
60 |
81 |
61 EAP_FUNC_IMPORT eap_status_e set_handle( |
82 EAP_FUNC_VISIBILITY_EAP_HANDLE_H eap_status_e set_handle( |
62 eap_variable_data_c * const selector, |
83 eap_variable_data_c * const selector, |
63 const eap_am_network_id_c * const network_id, |
84 const eap_am_network_id_c * const network_id, |
64 const eap_type_value_e p_eap_type); |
85 const eap_type_value_e p_eap_type); |
65 |
86 |
66 EAP_FUNC_IMPORT const eap_am_network_id_c * get_send_network_id() const; |
87 EAP_FUNC_VISIBILITY_EAP_HANDLE_H const eap_am_network_id_c * get_send_network_id() const; |
67 |
88 |
68 EAP_FUNC_IMPORT eap_type_value_e get_eap_type() const; |
89 EAP_FUNC_VISIBILITY_EAP_HANDLE_H eap_type_value_e get_eap_type() const; |
69 |
90 |
70 EAP_FUNC_IMPORT void reset(); |
91 EAP_FUNC_VISIBILITY_EAP_HANDLE_H void reset(); |
71 }; |
92 }; |
72 |
93 |
73 //-------------------------------------------------- |
94 //-------------------------------------------------- |
74 |
95 |
75 |
96 |