23 #define _EAP_AM_TYPE_GSMSIM_H_ |
23 #define _EAP_AM_TYPE_GSMSIM_H_ |
24 |
24 |
25 #include "eap_tools.h" |
25 #include "eap_tools.h" |
26 #include "eap_variable_data.h" |
26 #include "eap_variable_data.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_AM_TYPE_GSMSIM_H) |
|
30 #define EAP_CLASS_VISIBILITY_EAP_AM_TYPE_GSMSIM_H EAP_NONSHARABLE |
|
31 #define EAP_FUNC_VISIBILITY_EAP_AM_TYPE_GSMSIM_H |
|
32 #define EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_GSMSIM_H |
|
33 #define EAP_FUNC_EXPORT_EAP_AM_TYPE_GSMSIM_H |
|
34 #define EAP_C_FUNC_EXPORT_EAP_AM_TYPE_GSMSIM_H |
|
35 #elif defined(EAP_EXPORT_EAP_AM_TYPE_GSMSIM_H) |
|
36 #define EAP_CLASS_VISIBILITY_EAP_AM_TYPE_GSMSIM_H EAP_EXPORT |
|
37 #define EAP_FUNC_VISIBILITY_EAP_AM_TYPE_GSMSIM_H EAP_FUNC_EXPORT |
|
38 #define EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_GSMSIM_H EAP_C_FUNC_EXPORT |
|
39 #define EAP_FUNC_EXPORT_EAP_AM_TYPE_GSMSIM_H EAP_FUNC_EXPORT |
|
40 #define EAP_C_FUNC_EXPORT_EAP_AM_TYPE_GSMSIM_H EAP_C_FUNC_EXPORT |
|
41 #else |
|
42 #define EAP_CLASS_VISIBILITY_EAP_AM_TYPE_GSMSIM_H EAP_IMPORT |
|
43 #define EAP_FUNC_VISIBILITY_EAP_AM_TYPE_GSMSIM_H EAP_FUNC_IMPORT |
|
44 #define EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_GSMSIM_H EAP_C_FUNC_IMPORT |
|
45 #define EAP_FUNC_EXPORT_EAP_AM_TYPE_GSMSIM_H |
|
46 #define EAP_C_FUNC_EXPORT_EAP_AM_TYPE_GSMSIM_H |
|
47 #endif |
|
48 // End: added by script change_export_macros.sh. |
28 #include "abs_eap_am_type_gsmsim.h" |
49 #include "abs_eap_am_type_gsmsim.h" |
29 #include "eap_sim_triplets.h" |
50 #include "eap_sim_triplets.h" |
30 #include "eap_am_network_id.h" |
51 #include "eap_am_network_id.h" |
31 #include "eap_type_gsmsim_types.h" |
52 #include "eap_type_gsmsim_types.h" |
32 |
53 |
33 |
54 |
34 /// This class is interface to adaptation module of GSMSIM. |
55 /// This class is interface to adaptation module of GSMSIM. |
35 class EAP_EXPORT eap_am_type_gsmsim_c |
56 class EAP_CLASS_VISIBILITY_EAP_AM_TYPE_GSMSIM_H eap_am_type_gsmsim_c |
36 { |
57 { |
37 private: |
58 private: |
38 //-------------------------------------------------- |
59 //-------------------------------------------------- |
39 |
60 |
40 abs_eap_am_type_gsmsim_c *m_am_partner; |
61 abs_eap_am_type_gsmsim_c *m_am_partner; |
346 /** |
367 /** |
347 * This function creates a new instance of adaptation module of GSMSIM EAP-type. |
368 * This function creates a new instance of adaptation module of GSMSIM EAP-type. |
348 * @param tools is pointer to the abs_eap_am_tools class created by the adaptation module. |
369 * @param tools is pointer to the abs_eap_am_tools class created by the adaptation module. |
349 * GSMSIM EAP-type will callback caller using the partner pointer. |
370 * GSMSIM EAP-type will callback caller using the partner pointer. |
350 */ |
371 */ |
351 EAP_C_FUNC_IMPORT eap_am_type_gsmsim_c *new_eap_am_type_gsmsim( |
372 EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_GSMSIM_H eap_am_type_gsmsim_c *new_eap_am_type_gsmsim( |
352 abs_eap_am_tools_c * const tools, |
373 abs_eap_am_tools_c * const tools, |
353 abs_eap_base_type_c * const partner, |
374 abs_eap_base_type_c * const partner, |
354 const bool is_client_when_true, |
375 const bool is_client_when_true, |
355 const eap_am_network_id_c * const receive_network_id); |
376 const eap_am_network_id_c * const receive_network_id); |
356 |
377 |