eapol/eapol_framework/eapol_common/type/tls_peap/tls/include/tls_extension.h
changeset 49 43351a4f2da3
parent 26 9abfd4f00d37
--- a/eapol/eapol_framework/eapol_common/type/tls_peap/tls/include/tls_extension.h	Fri Sep 03 09:22:44 2010 +0300
+++ b/eapol/eapol_framework/eapol_common/type/tls_peap/tls/include/tls_extension.h	Thu Sep 16 13:07:04 2010 +0300
@@ -16,7 +16,7 @@
 */
 
 /*
-* %version: %
+* %version: 9.1.3 %
 */
 
 #if !defined(_TLS_EXTENSION_H_)
@@ -31,6 +31,29 @@
 #include "eap_fast_tlv_header.h"
 #endif //#if defined(USE_FAST_EAP_TYPE)
 
+#include "eap_am_export.h"
+// Start: added by script change_export_macros.sh.
+#if defined(EAP_NO_EXPORT_TLS_EXTENSION_H)
+	#define EAP_CLASS_VISIBILITY_TLS_EXTENSION_H EAP_NONSHARABLE 
+	#define EAP_FUNC_VISIBILITY_TLS_EXTENSION_H 
+	#define EAP_C_FUNC_VISIBILITY_TLS_EXTENSION_H 
+	#define EAP_FUNC_EXPORT_TLS_EXTENSION_H 
+	#define EAP_C_FUNC_EXPORT_TLS_EXTENSION_H 
+#elif defined(EAP_EXPORT_TLS_EXTENSION_H)
+	#define EAP_CLASS_VISIBILITY_TLS_EXTENSION_H EAP_EXPORT 
+	#define EAP_FUNC_VISIBILITY_TLS_EXTENSION_H EAP_FUNC_EXPORT 
+	#define EAP_C_FUNC_VISIBILITY_TLS_EXTENSION_H EAP_C_FUNC_EXPORT 
+	#define EAP_FUNC_EXPORT_TLS_EXTENSION_H EAP_FUNC_EXPORT 
+	#define EAP_C_FUNC_EXPORT_TLS_EXTENSION_H EAP_C_FUNC_EXPORT 
+#else
+	#define EAP_CLASS_VISIBILITY_TLS_EXTENSION_H EAP_IMPORT 
+	#define EAP_FUNC_VISIBILITY_TLS_EXTENSION_H EAP_FUNC_IMPORT 
+	#define EAP_C_FUNC_VISIBILITY_TLS_EXTENSION_H EAP_C_FUNC_IMPORT 
+	#define EAP_FUNC_EXPORT_TLS_EXTENSION_H 
+	#define EAP_C_FUNC_EXPORT_TLS_EXTENSION_H 
+#endif
+// End: added by script change_export_macros.sh.
+
 /** @file */
 
 /**
@@ -52,7 +75,7 @@
 
 
 /// This class defines one TLS completion action.
-class EAP_EXPORT tls_extension_c
+class EAP_CLASS_VISIBILITY_TLS_EXTENSION_H tls_extension_c
 : public eap_variable_data_c
 {
 private:
@@ -79,7 +102,7 @@
 	 * The set_is_valid() function sets the state of the object valid.
 	 * The creator of this object calls this function after it is initialized. 
 	 */
-	EAP_FUNC_IMPORT void set_is_valid();
+	EAP_FUNC_VISIBILITY_TLS_EXTENSION_H void set_is_valid();
 
 	//--------------------------------------------------
 protected:
@@ -92,12 +115,12 @@
 	/**
 	 * Destructor does nothing special.
 	 */
-	EAP_FUNC_IMPORT virtual ~tls_extension_c();
+	EAP_FUNC_VISIBILITY_TLS_EXTENSION_H virtual ~tls_extension_c();
 
 	/**
 	 * Constructor initializes object.
 	 */
-	EAP_FUNC_IMPORT tls_extension_c(
+	EAP_FUNC_VISIBILITY_TLS_EXTENSION_H tls_extension_c(
 		abs_eap_am_tools_c * const tools);
 
 	/**
@@ -110,47 +133,47 @@
 	 * If object initialization fails this function must return false.
 	 * @return This function returns the validity of this object.
 	 */
-	EAP_FUNC_IMPORT bool get_is_valid();
+	EAP_FUNC_VISIBILITY_TLS_EXTENSION_H bool get_is_valid();
 
 	/**
 	 * This function sets the extension lifitime hint.
 	 */
-	EAP_FUNC_IMPORT void set_lifetime_hint(const u32_t lifetime_hint);
+	EAP_FUNC_VISIBILITY_TLS_EXTENSION_H void set_lifetime_hint(const u32_t lifetime_hint);
 
 	/**
 	 * This function gets the extension lifetime hint.
 	 */
-	EAP_FUNC_IMPORT u32_t get_lifetime_hint() const;
+	EAP_FUNC_VISIBILITY_TLS_EXTENSION_H u32_t get_lifetime_hint() const;
 
 	/**
 	 * This function sets the extension type.
 	 */
-	EAP_FUNC_IMPORT void set_type(const tls_extension_type_e type);
+	EAP_FUNC_VISIBILITY_TLS_EXTENSION_H void set_type(const tls_extension_type_e type);
 
 	/**
 	 * This function gets the extension type.
 	 */
-	EAP_FUNC_IMPORT tls_extension_type_e get_type() const;
+	EAP_FUNC_VISIBILITY_TLS_EXTENSION_H tls_extension_type_e get_type() const;
 
 #if defined(USE_FAST_EAP_TYPE)
 
 	/// This function stores the PAC-Type for fast access.
-	EAP_FUNC_IMPORT void set_pac_type(const eap_fast_pac_type_e pac_type);
+	EAP_FUNC_VISIBILITY_TLS_EXTENSION_H void set_pac_type(const eap_fast_pac_type_e pac_type);
 
 	/// This function returns the PAC-Type for fast access.
-	EAP_FUNC_IMPORT eap_fast_pac_type_e get_pac_type() const;
+	EAP_FUNC_VISIBILITY_TLS_EXTENSION_H eap_fast_pac_type_e get_pac_type() const;
 
 #endif //#if defined(USE_FAST_EAP_TYPE)
 
 	/**
 	 * This function gets the debug string of the extension type.
 	 */
-	EAP_FUNC_IMPORT static eap_const_string  get_type_string(tls_extension_type_e type);
+	EAP_FUNC_VISIBILITY_TLS_EXTENSION_H static eap_const_string  get_type_string(tls_extension_type_e type);
 
 	/**
 	 * This function gets the extension from the array of extensions.
 	 */
-	EAP_FUNC_IMPORT static const tls_extension_c * get_tls_extension(
+	EAP_FUNC_VISIBILITY_TLS_EXTENSION_H static const tls_extension_c * get_tls_extension(
 		const tls_extension_type_e tls_extension_type,
 		EAP_TEMPLATE_CONST eap_array_c<tls_extension_c> * const tls_extensions,
 		abs_eap_am_tools_c * const am_tools);
@@ -159,7 +182,7 @@
 	/**
 	 * This function gets the extension from the array of extensions.
 	 */
-	EAP_FUNC_IMPORT static const tls_extension_c * get_tls_extension(
+	EAP_FUNC_VISIBILITY_TLS_EXTENSION_H static const tls_extension_c * get_tls_extension(
 		const tls_extension_type_e tls_extension_type,
 		const eap_fast_pac_type_e pac_type,
 		EAP_TEMPLATE_CONST eap_array_c<tls_extension_c> * const tls_extensions,