eapol/eapol_framework/eapol_common/am/include/simple_config_am_services.h
changeset 52 c23bdf5a328a
parent 33 938269283a16
equal deleted inserted replaced
51:e863583e6720 52:c23bdf5a328a
    23 #define _SIMPLE_CONFIG_AM_SERVICES_H_
    23 #define _SIMPLE_CONFIG_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_SIMPLE_CONFIG_AM_SERVICES_H)
       
    30 	#define EAP_CLASS_VISIBILITY_SIMPLE_CONFIG_AM_SERVICES_H EAP_NONSHARABLE 
       
    31 	#define EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_AM_SERVICES_H 
       
    32 	#define EAP_C_FUNC_VISIBILITY_SIMPLE_CONFIG_AM_SERVICES_H 
       
    33 	#define EAP_FUNC_EXPORT_SIMPLE_CONFIG_AM_SERVICES_H 
       
    34 	#define EAP_C_FUNC_EXPORT_SIMPLE_CONFIG_AM_SERVICES_H 
       
    35 #elif defined(EAP_EXPORT_SIMPLE_CONFIG_AM_SERVICES_H)
       
    36 	#define EAP_CLASS_VISIBILITY_SIMPLE_CONFIG_AM_SERVICES_H EAP_EXPORT 
       
    37 	#define EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_AM_SERVICES_H EAP_FUNC_EXPORT 
       
    38 	#define EAP_C_FUNC_VISIBILITY_SIMPLE_CONFIG_AM_SERVICES_H EAP_C_FUNC_EXPORT 
       
    39 	#define EAP_FUNC_EXPORT_SIMPLE_CONFIG_AM_SERVICES_H EAP_FUNC_EXPORT 
       
    40 	#define EAP_C_FUNC_EXPORT_SIMPLE_CONFIG_AM_SERVICES_H EAP_C_FUNC_EXPORT 
       
    41 #else
       
    42 	#define EAP_CLASS_VISIBILITY_SIMPLE_CONFIG_AM_SERVICES_H EAP_IMPORT 
       
    43 	#define EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_AM_SERVICES_H EAP_FUNC_IMPORT 
       
    44 	#define EAP_C_FUNC_VISIBILITY_SIMPLE_CONFIG_AM_SERVICES_H EAP_C_FUNC_IMPORT 
       
    45 	#define EAP_FUNC_EXPORT_SIMPLE_CONFIG_AM_SERVICES_H 
       
    46 	#define EAP_C_FUNC_EXPORT_SIMPLE_CONFIG_AM_SERVICES_H 
       
    47 #endif
       
    48 // End: added by script change_export_macros.sh.
    28 #include "abs_eap_am_type_simple_config.h"
    49 #include "abs_eap_am_type_simple_config.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 "simple_config_types.h"
    52 #include "simple_config_types.h"
    32 
    53 
    34 class simple_config_payloads_c;
    55 class simple_config_payloads_c;
    35 class simple_config_credential_c;
    56 class simple_config_credential_c;
    36 
    57 
    37 
    58 
    38 /// This class is interface to adaptation module of SIMPLE_CONFIG.
    59 /// This class is interface to adaptation module of SIMPLE_CONFIG.
    39 class EAP_EXPORT simple_config_am_services_c
    60 class EAP_CLASS_VISIBILITY_SIMPLE_CONFIG_AM_SERVICES_H simple_config_am_services_c
    40 {
    61 {
    41 private:
    62 private:
    42 	//--------------------------------------------------
    63 	//--------------------------------------------------
    43 
    64 
    44 	/// This function returns pointer to adaptation module of SIMPLE_CONFIG. See abs_simple_config_am_services_c.
    65 	/// This function returns pointer to adaptation module of SIMPLE_CONFIG. See abs_simple_config_am_services_c.
   124 /**
   145 /**
   125  * This function creates a new instance of adaptation module of SIMPLE_CONFIG.
   146  * This function creates a new instance of adaptation module of SIMPLE_CONFIG.
   126  * @param tools is pointer to the abs_eap_am_tools class created by the adaptation module.
   147  * @param tools is pointer to the abs_eap_am_tools class created by the adaptation module.
   127  * Adaptation module of SIMPLE_CONFIG will callback caller using the partner pointer.
   148  * Adaptation module of SIMPLE_CONFIG will callback caller using the partner pointer.
   128  */
   149  */
   129 EAP_C_FUNC_IMPORT  simple_config_am_services_c *new_simple_config_am_services(
   150 EAP_C_FUNC_VISIBILITY_SIMPLE_CONFIG_AM_SERVICES_H  simple_config_am_services_c *new_simple_config_am_services(
   130 	abs_eap_am_tools_c * const tools);
   151 	abs_eap_am_tools_c * const tools);
   131 
   152 
   132 
   153 
   133 #endif //#if !defined(_SIMPLE_CONFIG_AM_SERVICES_H_)
   154 #endif //#if !defined(_SIMPLE_CONFIG_AM_SERVICES_H_)
   134 
   155