eapol/eapol_framework/eapol_common/am/include/tls_am_services.h
changeset 52 c23bdf5a328a
parent 33 938269283a16
equal deleted inserted replaced
51:e863583e6720 52:c23bdf5a328a
    23 #define _TLS_AM_SERVICES_H_
    23 #define _TLS_AM_SERVICES_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_TLS_AM_SERVICES_H)
       
    30 	#define EAP_CLASS_VISIBILITY_TLS_AM_SERVICES_H EAP_NONSHARABLE 
       
    31 	#define EAP_FUNC_VISIBILITY_TLS_AM_SERVICES_H 
       
    32 	#define EAP_C_FUNC_VISIBILITY_TLS_AM_SERVICES_H 
       
    33 	#define EAP_FUNC_EXPORT_TLS_AM_SERVICES_H 
       
    34 	#define EAP_C_FUNC_EXPORT_TLS_AM_SERVICES_H 
       
    35 #elif defined(EAP_EXPORT_TLS_AM_SERVICES_H)
       
    36 	#define EAP_CLASS_VISIBILITY_TLS_AM_SERVICES_H EAP_EXPORT 
       
    37 	#define EAP_FUNC_VISIBILITY_TLS_AM_SERVICES_H EAP_FUNC_EXPORT 
       
    38 	#define EAP_C_FUNC_VISIBILITY_TLS_AM_SERVICES_H EAP_C_FUNC_EXPORT 
       
    39 	#define EAP_FUNC_EXPORT_TLS_AM_SERVICES_H EAP_FUNC_EXPORT 
       
    40 	#define EAP_C_FUNC_EXPORT_TLS_AM_SERVICES_H EAP_C_FUNC_EXPORT 
       
    41 #else
       
    42 	#define EAP_CLASS_VISIBILITY_TLS_AM_SERVICES_H EAP_IMPORT 
       
    43 	#define EAP_FUNC_VISIBILITY_TLS_AM_SERVICES_H EAP_FUNC_IMPORT 
       
    44 	#define EAP_C_FUNC_VISIBILITY_TLS_AM_SERVICES_H EAP_C_FUNC_IMPORT 
       
    45 	#define EAP_FUNC_EXPORT_TLS_AM_SERVICES_H 
       
    46 	#define EAP_C_FUNC_EXPORT_TLS_AM_SERVICES_H 
       
    47 #endif
       
    48 // End: added by script change_export_macros.sh.
    28 #include "abs_eap_am_type_tls_peap.h"
    49 #include "abs_eap_am_type_tls_peap.h"
    29 #include "eap_am_network_id.h"
    50 #include "eap_am_network_id.h"
    30 #include "eap_array.h"
    51 #include "eap_array.h"
    31 #include "tls_peap_types.h"
    52 #include "tls_peap_types.h"
    32 
    53 
    36 class tls_extension_c;
    57 class tls_extension_c;
    37 #endif //#if defined(USE_EAP_TLS_SESSION_TICKET)
    58 #endif //#if defined(USE_EAP_TLS_SESSION_TICKET)
    38 
    59 
    39 
    60 
    40 /// This class is interface to adaptation module of TLS.
    61 /// This class is interface to adaptation module of TLS.
    41 class EAP_EXPORT tls_am_services_c
    62 class EAP_CLASS_VISIBILITY_TLS_AM_SERVICES_H tls_am_services_c
    42 {
    63 {
    43 private:
    64 private:
    44 	//--------------------------------------------------
    65 	//--------------------------------------------------
    45 
    66 
    46 	/// This function returns pointer to adaptation module of TLS. See abs_tls_am_services_c.
    67 	/// This function returns pointer to adaptation module of TLS. See abs_tls_am_services_c.
   292 /**
   313 /**
   293  * This function creates a new instance of adaptation module of TLS.
   314  * This function creates a new instance of adaptation module of TLS.
   294  * @param tools is pointer to the abs_eap_am_tools class created by the adaptation module.
   315  * @param tools is pointer to the abs_eap_am_tools class created by the adaptation module.
   295  * Adaptation module of TLS will callback caller using the partner pointer.
   316  * Adaptation module of TLS will callback caller using the partner pointer.
   296  */
   317  */
   297 EAP_C_FUNC_IMPORT  tls_am_services_c *new_tls_am_services(
   318 EAP_C_FUNC_VISIBILITY_TLS_AM_SERVICES_H  tls_am_services_c *new_tls_am_services(
   298 	abs_eap_am_tools_c * const tools);
   319 	abs_eap_am_tools_c * const tools);
   299 
   320 
   300 
   321 
   301 #endif //#if !defined(_TLS_AM_SERVICES_H_)
   322 #endif //#if !defined(_TLS_AM_SERVICES_H_)
   302 
   323