eapol/eapol_framework/eapol_common/type/tls_peap/tls/include/tls_message.h
changeset 52 c23bdf5a328a
parent 33 938269283a16
--- a/eapol/eapol_framework/eapol_common/type/tls_peap/tls/include/tls_message.h	Fri Sep 17 08:30:11 2010 +0300
+++ b/eapol/eapol_framework/eapol_common/type/tls_peap/tls/include/tls_message.h	Mon Oct 04 00:19:54 2010 +0300
@@ -27,6 +27,29 @@
 #include "tls_record_message.h"
 #include "abs_tls_message_hash.h"
 #include "abs_tls_apply_cipher_spec.h"
+#include "eap_am_export.h"
+// Start: added by script change_export_macros.sh.
+#if defined(EAP_NO_EXPORT_TLS_MESSAGE_H)
+	#define EAP_CLASS_VISIBILITY_TLS_MESSAGE_H EAP_NONSHARABLE 
+	#define EAP_FUNC_VISIBILITY_TLS_MESSAGE_H 
+	#define EAP_C_FUNC_VISIBILITY_TLS_MESSAGE_H 
+	#define EAP_FUNC_EXPORT_TLS_MESSAGE_H 
+	#define EAP_C_FUNC_EXPORT_TLS_MESSAGE_H 
+#elif defined(EAP_EXPORT_TLS_MESSAGE_H)
+	#define EAP_CLASS_VISIBILITY_TLS_MESSAGE_H EAP_EXPORT 
+	#define EAP_FUNC_VISIBILITY_TLS_MESSAGE_H EAP_FUNC_EXPORT 
+	#define EAP_C_FUNC_VISIBILITY_TLS_MESSAGE_H EAP_C_FUNC_EXPORT 
+	#define EAP_FUNC_EXPORT_TLS_MESSAGE_H EAP_FUNC_EXPORT 
+	#define EAP_C_FUNC_EXPORT_TLS_MESSAGE_H EAP_C_FUNC_EXPORT 
+#else
+	#define EAP_CLASS_VISIBILITY_TLS_MESSAGE_H EAP_IMPORT 
+	#define EAP_FUNC_VISIBILITY_TLS_MESSAGE_H EAP_FUNC_IMPORT 
+	#define EAP_C_FUNC_VISIBILITY_TLS_MESSAGE_H EAP_C_FUNC_IMPORT 
+	#define EAP_FUNC_EXPORT_TLS_MESSAGE_H 
+	#define EAP_C_FUNC_EXPORT_TLS_MESSAGE_H 
+#endif
+// End: added by script change_export_macros.sh.
+
 
 /** @file */
 
@@ -45,7 +68,7 @@
  * because of the PKI functions are asyncronous in
  * Symbian.
  */
-class EAP_EXPORT tls_message_c
+class EAP_CLASS_VISIBILITY_TLS_MESSAGE_H tls_message_c
 {
 private:
 	//--------------------------------------------------
@@ -94,12 +117,12 @@
 	/**
 	 * The destructor of the tls_message_c class does nothing special.
 	 */
-	EAP_FUNC_IMPORT virtual ~tls_message_c();
+	EAP_FUNC_VISIBILITY_TLS_MESSAGE_H virtual ~tls_message_c();
 
 	/**
 	 * The constructor of the tls_message_c class simply initializes the attributes.
 	 */
-	EAP_FUNC_IMPORT tls_message_c(
+	EAP_FUNC_VISIBILITY_TLS_MESSAGE_H tls_message_c(
 		abs_eap_am_tools_c * const tools,
 		abs_tls_message_hash_c * const message_hash,
 		abs_tls_apply_cipher_spec_c * const apply_cipher_spec,
@@ -109,42 +132,42 @@
 	/**
 	 * This function resets this object.
 	 */
-	EAP_FUNC_IMPORT eap_status_e reset();
+	EAP_FUNC_VISIBILITY_TLS_MESSAGE_H eap_status_e reset();
 
 	/**
 	 * This function returns the index of message where analyse must continue.
 	 */
-	EAP_FUNC_IMPORT u32_t get_analyse_index() const;
+	EAP_FUNC_VISIBILITY_TLS_MESSAGE_H u32_t get_analyse_index() const;
 
 	/**
 	 * This function saves the index of message where analyse must continue.
 	 */
-	EAP_FUNC_IMPORT void save_analyse_index(const u32_t analyse_index);
+	EAP_FUNC_VISIBILITY_TLS_MESSAGE_H void save_analyse_index(const u32_t analyse_index);
 
 	/**
 	 * This function copies the received TLS-message data and EAP-identifier.
 	 * EAP-identifier is needed in XP PEAPv0. That stupid version uses
 	 * same EAP-identifier with PEAP header and tunneled EAP-header.
 	 */
-	EAP_FUNC_IMPORT eap_status_e set_tls_message_data(
+	EAP_FUNC_VISIBILITY_TLS_MESSAGE_H eap_status_e set_tls_message_data(
 		eap_variable_data_c * const tls_message_data,
 		const u8_t received_eap_identifier);
 
 	/**
 	 * This function returns the TLS-message data.
 	 */
-	EAP_FUNC_IMPORT eap_variable_data_c * get_tls_message_data();
+	EAP_FUNC_VISIBILITY_TLS_MESSAGE_H eap_variable_data_c * get_tls_message_data();
 
 	/**
 	 * This function returns the EAP-identifier.
 	 */
-	EAP_FUNC_IMPORT u8_t get_received_eap_identifier();
+	EAP_FUNC_VISIBILITY_TLS_MESSAGE_H u8_t get_received_eap_identifier();
 
 	/**
 	 * This function adds TLS-record to m_record_messages.
 	 * Parameter free_record tells whether record must be freed in destructor.
 	 */
-	EAP_FUNC_IMPORT eap_status_e add_record_message(
+	EAP_FUNC_VISIBILITY_TLS_MESSAGE_H eap_status_e add_record_message(
 		tls_record_message_c * const record,
 		const bool free_record,
 		const bool includes_tls_handshake_message);
@@ -152,38 +175,38 @@
 	/**
 	 * This function fragments TLS-protocol messages to one or more TLS-record messages.
 	 */
-	EAP_FUNC_IMPORT eap_status_e fragment_tls_records(
+	EAP_FUNC_VISIBILITY_TLS_MESSAGE_H eap_status_e fragment_tls_records(
 		tls_record_message_c * const tls_record_message,
 		eap_array_c<tls_record_message_c> * const tls_fragments);
 
 	/**
 	 * This function adds data of every TLS-record to tls_message_buffer.
 	 */
-	EAP_FUNC_IMPORT eap_status_e add_message_data(
+	EAP_FUNC_VISIBILITY_TLS_MESSAGE_H eap_status_e add_message_data(
 		eap_variable_data_c * const tls_message_buffer,
 		bool * const includes_tls_handshake_message);
 
 	/**
 	 * This function returns count of the TLS-records.
 	 */
-	EAP_FUNC_IMPORT u32_t get_record_message_count() const;
+	EAP_FUNC_VISIBILITY_TLS_MESSAGE_H u32_t get_record_message_count() const;
 
 	/**
 	 * This function returns pointer to the TLS-record selected by index.
 	 */
-	EAP_FUNC_IMPORT tls_record_message_c * get_record_message(
+	EAP_FUNC_VISIBILITY_TLS_MESSAGE_H tls_record_message_c * get_record_message(
 		const u32_t index) const;
 
 	/**
 	 * This function removes the TLS-record selected by index.
 	 */
-	EAP_FUNC_IMPORT eap_status_e remove_record_message(
+	EAP_FUNC_VISIBILITY_TLS_MESSAGE_H eap_status_e remove_record_message(
 		const u32_t index);
 
 	/**
 	 * This function returns pointer to the last TLS-record.
 	 */
-	EAP_FUNC_IMPORT tls_record_message_c * get_last_record_message() const;
+	EAP_FUNC_VISIBILITY_TLS_MESSAGE_H tls_record_message_c * get_last_record_message() const;
 
 	// 
 	//--------------------------------------------------