eapol/eapol_framework/eapol_common/include/eap_general_settings_server_message_if.h
changeset 49 43351a4f2da3
parent 26 9abfd4f00d37
equal deleted inserted replaced
47:712b4ffd76bb 49:43351a4f2da3
    22 #if !defined(_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H_)
    22 #if !defined(_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H_)
    23 #define _EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H_
    23 #define _EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H_
    24 
    24 
    25 #include "eap_tools.h"
    25 #include "eap_tools.h"
    26 #include "eap_am_export.h"
    26 #include "eap_am_export.h"
       
    27 // Start: added by script change_export_macros.sh.
       
    28 #if defined(EAP_NO_EXPORT_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H)
       
    29 	#define EAP_CLASS_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H EAP_NONSHARABLE 
       
    30 	#define EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H 
       
    31 	#define EAP_C_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H 
       
    32 	#define EAP_FUNC_EXPORT_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H 
       
    33 	#define EAP_C_FUNC_EXPORT_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H 
       
    34 #elif defined(EAP_EXPORT_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H)
       
    35 	#define EAP_CLASS_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H EAP_EXPORT 
       
    36 	#define EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H EAP_FUNC_EXPORT 
       
    37 	#define EAP_C_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H EAP_C_FUNC_EXPORT 
       
    38 	#define EAP_FUNC_EXPORT_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H EAP_FUNC_EXPORT 
       
    39 	#define EAP_C_FUNC_EXPORT_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H EAP_C_FUNC_EXPORT 
       
    40 #else
       
    41 	#define EAP_CLASS_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H EAP_IMPORT 
       
    42 	#define EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H EAP_FUNC_IMPORT 
       
    43 	#define EAP_C_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H EAP_C_FUNC_IMPORT 
       
    44 	#define EAP_FUNC_EXPORT_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H 
       
    45 	#define EAP_C_FUNC_EXPORT_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H 
       
    46 #endif
       
    47 // End: added by script change_export_macros.sh.
    27 #include "abs_eap_session_core.h"
    48 #include "abs_eap_session_core.h"
    28 #include "eap_variable_data.h"
    49 #include "eap_variable_data.h"
    29 #include "abs_eap_am_mutex.h"
    50 #include "abs_eap_am_mutex.h"
    30 #include "eap_session_core_base.h"
    51 #include "eap_session_core_base.h"
    31 #include "abs_eap_am_message_if.h"
    52 #include "abs_eap_am_message_if.h"
    37 
    58 
    38 /** @file */
    59 /** @file */
    39 
    60 
    40 
    61 
    41 /// Class creates and reads the messages used in EAP-general settings interface on the server side.
    62 /// Class creates and reads the messages used in EAP-general settings interface on the server side.
    42 class EAP_EXPORT eap_general_settings_server_message_if_c
    63 class EAP_CLASS_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H eap_general_settings_server_message_if_c
    43 : public abs_eap_am_general_settings_c
    64 : public abs_eap_am_general_settings_c
    44 , public eap_am_message_if_c
    65 , public eap_am_message_if_c
    45 , public abs_eap_base_timer_c
    66 , public abs_eap_base_timer_c
    46 {
    67 {
    47 
    68 
   104 	//--------------------------------------------------
   125 	//--------------------------------------------------
   105 
   126 
   106 	/**
   127 	/**
   107 	 * The destructor deletes the m_eap_core object.
   128 	 * The destructor deletes the m_eap_core object.
   108 	 */
   129 	 */
   109 	EAP_FUNC_IMPORT virtual ~eap_general_settings_server_message_if_c();
   130 	EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H virtual ~eap_general_settings_server_message_if_c();
   110 
   131 
   111 	/**
   132 	/**
   112 	 * The constructor creates the eap_core object and initializes the m_eap_core
   133 	 * The constructor creates the eap_core object and initializes the m_eap_core
   113 	 * to point the eap_core object.
   134 	 * to point the eap_core object.
   114 	 * @param tools is pointer to the tools class. @see abs_eap_am_tools_c.
   135 	 * @param tools is pointer to the tools class. @see abs_eap_am_tools_c.
   115 	 */
   136 	 */
   116 	EAP_FUNC_IMPORT eap_general_settings_server_message_if_c(
   137 	EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H eap_general_settings_server_message_if_c(
   117 		abs_eap_am_tools_c * const tools);
   138 		abs_eap_am_tools_c * const tools);
   118 
   139 
   119 	EAP_FUNC_IMPORT void set_partner(abs_eap_am_message_if_c * const partner);
   140 	EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H void set_partner(abs_eap_am_message_if_c * const partner);
   120 
   141 
   121 	EAP_FUNC_IMPORT eap_status_e process_data(const void * const data, const u32_t length);
   142 	EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H eap_status_e process_data(const void * const data, const u32_t length);
   122 
   143 
   123 	// This is documented in abs_eap_stack_interface_c::configure().
   144 	// This is documented in abs_eap_stack_interface_c::configure().
   124 	EAP_FUNC_IMPORT eap_status_e configure(
   145 	EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H eap_status_e configure(
   125 		const eap_variable_data_c * const client_configuration);
   146 		const eap_variable_data_c * const client_configuration);
   126 
   147 
   127 	// This is documented in abs_eap_stack_interface_c::shutdown().
   148 	// This is documented in abs_eap_stack_interface_c::shutdown().
   128 	EAP_FUNC_IMPORT eap_status_e shutdown();
   149 	EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H eap_status_e shutdown();
   129 
   150 
   130 	// This is documented in abs_eap_stack_interface_c::set_is_valid().
   151 	// This is documented in abs_eap_stack_interface_c::set_is_valid().
   131 	EAP_FUNC_IMPORT void set_is_valid();
   152 	EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H void set_is_valid();
   132 
   153 
   133 	// This is documented in abs_eap_stack_interface_c::get_is_valid().
   154 	// This is documented in abs_eap_stack_interface_c::get_is_valid().
   134 	EAP_FUNC_IMPORT bool get_is_valid();
   155 	EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H bool get_is_valid();
   135 
   156 
   136 	// See abs_eap_base_timer_c::timer_expired().
   157 	// See abs_eap_base_timer_c::timer_expired().
   137 	EAP_FUNC_IMPORT eap_status_e timer_expired(
   158 	EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H eap_status_e timer_expired(
   138 		const u32_t id, void *data);
   159 		const u32_t id, void *data);
   139 
   160 
   140 	// See abs_eap_base_timer_c::timer_delete_data().
   161 	// See abs_eap_base_timer_c::timer_delete_data().
   141 	EAP_FUNC_IMPORT eap_status_e timer_delete_data(
   162 	EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H eap_status_e timer_delete_data(
   142 		const u32_t id, void *data);
   163 		const u32_t id, void *data);
   143 
   164 
   144 
   165 
   145 	EAP_FUNC_IMPORT eap_status_e complete_set_eap_methods(const eap_method_settings_c * const internal_settings);
   166 	EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H eap_status_e complete_set_eap_methods(const eap_method_settings_c * const internal_settings);
   146 
   167 
   147 	EAP_FUNC_IMPORT eap_status_e complete_get_eap_methods(const eap_method_settings_c * const internal_settings);
   168 	EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H eap_status_e complete_get_eap_methods(const eap_method_settings_c * const internal_settings);
   148 
   169 
   149 	EAP_FUNC_IMPORT eap_status_e complete_get_certificate_lists(const eap_method_settings_c * const internal_settings);
   170 	EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H eap_status_e complete_get_certificate_lists(const eap_method_settings_c * const internal_settings);
   150 
   171 
   151 	EAP_FUNC_IMPORT eap_status_e complete_delete_all_eap_settings(const eap_method_settings_c * const internal_settings);
   172 	EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H eap_status_e complete_delete_all_eap_settings(const eap_method_settings_c * const internal_settings);
   152 
   173 
   153 	EAP_FUNC_IMPORT eap_status_e complete_copy_all_eap_settings(const eap_method_settings_c * const internal_settings);
   174 	EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H eap_status_e complete_copy_all_eap_settings(const eap_method_settings_c * const internal_settings);
   154 
   175 
   155 	//--------------------------------------------------
   176 	//--------------------------------------------------
   156 }; // class eap_general_settings_server_message_if_c
   177 }; // class eap_general_settings_server_message_if_c
   157 
   178 
   158 #endif //#if !defined(_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H_)
   179 #endif //#if !defined(_EAP_GENERAL_SETTINGS_SERVER_MESSAGE_IF_H_)