eapol/eapol_framework/eapol_common/include/eap_wimax_authentication.h
changeset 49 43351a4f2da3
parent 26 9abfd4f00d37
--- a/eapol/eapol_framework/eapol_common/include/eap_wimax_authentication.h	Fri Sep 03 09:22:44 2010 +0300
+++ b/eapol/eapol_framework/eapol_common/include/eap_wimax_authentication.h	Thu Sep 16 13:07:04 2010 +0300
@@ -29,6 +29,29 @@
 #include <eap_type_selection.h>
 #include <eap_array.h>
 #include <abs_eap_am_tools.h>
+#include "eap_am_export.h"
+// Start: added by script change_export_macros.sh.
+#if defined(EAP_NO_EXPORT_EAP_WIMAX_AUTHENTICATION_H)
+	#define EAP_CLASS_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H EAP_NONSHARABLE 
+	#define EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H 
+	#define EAP_C_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H 
+	#define EAP_FUNC_EXPORT_EAP_WIMAX_AUTHENTICATION_H 
+	#define EAP_C_FUNC_EXPORT_EAP_WIMAX_AUTHENTICATION_H 
+#elif defined(EAP_EXPORT_EAP_WIMAX_AUTHENTICATION_H)
+	#define EAP_CLASS_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H EAP_EXPORT 
+	#define EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H EAP_FUNC_EXPORT 
+	#define EAP_C_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H EAP_C_FUNC_EXPORT 
+	#define EAP_FUNC_EXPORT_EAP_WIMAX_AUTHENTICATION_H EAP_FUNC_EXPORT 
+	#define EAP_C_FUNC_EXPORT_EAP_WIMAX_AUTHENTICATION_H EAP_C_FUNC_EXPORT 
+#else
+	#define EAP_CLASS_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H EAP_IMPORT 
+	#define EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H EAP_FUNC_IMPORT 
+	#define EAP_C_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H EAP_C_FUNC_IMPORT 
+	#define EAP_FUNC_EXPORT_EAP_WIMAX_AUTHENTICATION_H 
+	#define EAP_C_FUNC_EXPORT_EAP_WIMAX_AUTHENTICATION_H 
+#endif
+// End: added by script change_export_macros.sh.
+
 
 // FORWARD DECLARATIONS
 class eap_session_core_c;
@@ -37,46 +60,42 @@
 
 
 // CLASS DECLARATION
-class EAP_EXPORT eap_wimax_authentication_c
+class EAP_CLASS_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_wimax_authentication_c
 : public abs_eap_am_wimax_authentication_c
 , public abs_eap_core_c
 {
 public:
 
-	EAP_FUNC_IMPORT eap_wimax_authentication_c(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_wimax_authentication_c(
 		abs_eap_am_tools_c* const tools, 
 		abs_eap_wimax_authentication_c* const partner,
 		eap_am_wimax_authentication_c* const am_wauth,
 		const bool is_client_when_true);
 
-#if defined(EXPORT_DESTRUCTORS)
-	EAP_FUNC_IMPORT virtual ~eap_wimax_authentication_c();  // For GCC compilation
-#else
-	virtual ~eap_wimax_authentication_c();	 // For RVCT compilation
-#endif
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H virtual ~eap_wimax_authentication_c();  // For GCC compilation
 
 	///////////////////////////////////
 	/* These are called by the lower */
 	/* layer (= Wimax engine).       */
 
-	EAP_FUNC_IMPORT static eap_wimax_authentication_c* new_eap_wimax_authentication_c(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H static eap_wimax_authentication_c* new_eap_wimax_authentication_c(
 		abs_eap_am_tools_c* const tools,
 		abs_eap_wimax_authentication_c* const partner,
 		const bool is_client_when_true);
 
-	EAP_FUNC_IMPORT eap_status_e shutdown();
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e shutdown();
 
-	EAP_FUNC_IMPORT eap_status_e cancel_all_authentication_sessions();
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e cancel_all_authentication_sessions();
 
-	EAP_FUNC_IMPORT eap_status_e packet_process(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e packet_process(
 		const eap_am_network_id_c * const receive_network_id,
 		eap_general_header_base_c * const packet_data,
 		const u32_t packet_length);
 
-	EAP_FUNC_IMPORT eap_status_e eap_acknowledge(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e eap_acknowledge(
 		const eap_am_network_id_c * const receive_network_id);
 
-	EAP_FUNC_IMPORT eap_status_e configure();
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e configure();
 
 	
 	/**
@@ -102,13 +121,13 @@
 	 * "RoutingRealm2!RoutingRealm3!HomeRealm!{avp1|avp2|avp3}username@RoutingRealm1".
 	 */
 
-	EAP_FUNC_IMPORT eap_status_e set_wimax_parameters(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e set_wimax_parameters(
 		eap_variable_data_c* const routing_info,
 		eap_variable_data_c* const nai_decoration);
 
-	EAP_FUNC_IMPORT bool get_is_valid();
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H bool get_is_valid();
 
-	EAP_FUNC_IMPORT bool get_is_client();
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H bool get_is_client();
 
 
 	//--------------------------------------------------
@@ -118,18 +137,18 @@
 	/* These are called by eap_session_core. */
     /* See abs_eap_core.h for descriptions.  */
 
-	EAP_FUNC_IMPORT eap_status_e packet_send(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e packet_send(
 		const eap_am_network_id_c * const network_id,
 		eap_buf_chain_wr_c * const sent_packet,
 		const u32_t header_offset,
 		const u32_t data_length,
 		const u32_t buffer_length);
 
-	EAP_FUNC_IMPORT u32_t get_header_offset(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H u32_t get_header_offset(
 		u32_t * const MTU,
 		u32_t * const trailer_length);
 
-	EAP_FUNC_IMPORT eap_status_e load_module(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e load_module(
 		const eap_type_value_e type,
 		const eap_type_value_e /* tunneling_type */,
 		abs_eap_base_type_c * const partner,
@@ -137,60 +156,60 @@
 		const bool is_client_when_true,
 		const eap_am_network_id_c * const receive_network_id);
 
-	EAP_FUNC_IMPORT eap_status_e unload_module(const eap_type_value_e eap_type);
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e unload_module(const eap_type_value_e eap_type);
 
-	EAP_FUNC_IMPORT eap_status_e restart_authentication(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e restart_authentication(
 		const eap_am_network_id_c * const receive_network_id,
 		const bool is_client_when_true,
 		const bool force_clean_restart,
 		const bool from_timer = false);
 
-	EAP_FUNC_IMPORT eap_status_e packet_data_crypto_keys(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e packet_data_crypto_keys(
 		const eap_am_network_id_c * const send_network_id,
 		const eap_master_session_key_c * const master_session_key
 		);
 
-	EAP_FUNC_IMPORT eap_status_e read_configure(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e read_configure(
 		const eap_configuration_field_c * const field,
 		eap_variable_data_c * const data);
 
-	EAP_FUNC_IMPORT eap_status_e write_configure(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e write_configure(
 		const eap_configuration_field_c * const field,
 		eap_variable_data_c * const data);
 
-	EAP_FUNC_IMPORT void state_notification(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H void state_notification(
 		const abs_eap_state_notification_c * const state);
 
-	EAP_FUNC_IMPORT eap_status_e asynchronous_init_remove_eap_session(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e asynchronous_init_remove_eap_session(
 		const eap_am_network_id_c * const send_network_id);
 
-	EAP_FUNC_IMPORT eap_status_e set_timer(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e set_timer(
 		abs_eap_base_timer_c * const initializer, 
 		const u32_t id, 
 		void * const data,
 		const u32_t time_ms);
 
-	EAP_FUNC_IMPORT eap_status_e cancel_timer(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e cancel_timer(
 		abs_eap_base_timer_c * const initializer, 
 		const u32_t id);
 
-	EAP_FUNC_IMPORT eap_status_e cancel_all_timers();
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e cancel_all_timers();
 
-	EAP_FUNC_IMPORT eap_status_e check_is_valid_eap_type(const eap_type_value_e eap_type);
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e check_is_valid_eap_type(const eap_type_value_e eap_type);
 
-	EAP_FUNC_IMPORT eap_status_e get_eap_type_list(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e get_eap_type_list(
 		eap_array_c<eap_type_value_e> * const eap_type_list);
 
-	EAP_FUNC_IMPORT eap_status_e add_rogue_ap(eap_array_c<eap_rogue_ap_entry_c> & rogue_ap_list);
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e add_rogue_ap(eap_array_c<eap_rogue_ap_entry_c> & rogue_ap_list);
 
-	EAP_FUNC_IMPORT eap_status_e set_session_timeout(
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e set_session_timeout(
 		const u32_t session_timeout_ms);
 
 	//--------------------------------------------------
 
 private:
 
-	EAP_FUNC_IMPORT eap_status_e create_upper_stack();
+	EAP_FUNC_VISIBILITY_EAP_WIMAX_AUTHENTICATION_H eap_status_e create_upper_stack();
 
 	// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -