eapol/eapol_framework/eapol_common/include/eapol_ethernet_header.h
changeset 52 c23bdf5a328a
parent 33 938269283a16
--- a/eapol/eapol_framework/eapol_common/include/eapol_ethernet_header.h	Fri Sep 17 08:30:11 2010 +0300
+++ b/eapol/eapol_framework/eapol_common/include/eapol_ethernet_header.h	Mon Oct 04 00:19:54 2010 +0300
@@ -26,6 +26,29 @@
 #include "eapol_header.h"
 #include "eap_general_header_base.h"
 #include "eapol_ethernet_address.h"
+#include "eap_am_export.h"
+// Start: added by script change_export_macros.sh.
+#if defined(EAP_NO_EXPORT_EAPOL_ETHERNET_HEADER_H)
+	#define EAP_CLASS_VISIBILITY_EAPOL_ETHERNET_HEADER_H EAP_NONSHARABLE 
+	#define EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H 
+	#define EAP_C_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H 
+	#define EAP_FUNC_EXPORT_EAPOL_ETHERNET_HEADER_H 
+	#define EAP_C_FUNC_EXPORT_EAPOL_ETHERNET_HEADER_H 
+#elif defined(EAP_EXPORT_EAPOL_ETHERNET_HEADER_H)
+	#define EAP_CLASS_VISIBILITY_EAPOL_ETHERNET_HEADER_H EAP_EXPORT 
+	#define EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H EAP_FUNC_EXPORT 
+	#define EAP_C_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H EAP_C_FUNC_EXPORT 
+	#define EAP_FUNC_EXPORT_EAPOL_ETHERNET_HEADER_H EAP_FUNC_EXPORT 
+	#define EAP_C_FUNC_EXPORT_EAPOL_ETHERNET_HEADER_H EAP_C_FUNC_EXPORT 
+#else
+	#define EAP_CLASS_VISIBILITY_EAPOL_ETHERNET_HEADER_H EAP_IMPORT 
+	#define EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H EAP_FUNC_IMPORT 
+	#define EAP_C_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H EAP_C_FUNC_IMPORT 
+	#define EAP_FUNC_EXPORT_EAPOL_ETHERNET_HEADER_H 
+	#define EAP_C_FUNC_EXPORT_EAPOL_ETHERNET_HEADER_H 
+#endif
+// End: added by script change_export_macros.sh.
+
 
 
 /** @file */
@@ -46,7 +69,7 @@
  *  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  * @endcode
  */
-class EAP_EXPORT eapol_ethernet_header_base_c
+class EAP_CLASS_VISIBILITY_EAPOL_ETHERNET_HEADER_H eapol_ethernet_header_base_c
 : public eap_general_header_base_c
 {
 private:
@@ -75,46 +98,46 @@
 	//--------------------------------------------------
 
 	/// Destructor does nothing special.
-	EAP_FUNC_IMPORT virtual ~eapol_ethernet_header_base_c();
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H virtual ~eapol_ethernet_header_base_c();
 
 	/// Constructor does nothing special.
 	/// The tools parameter is pointer to tools object.
 	/// The header_buffer parameter is pointer to buffer of Ethernet-packet including header and data.
 	/// The header_buffer_length parameter is length of the header_buffer.
-	EAP_FUNC_IMPORT eapol_ethernet_header_base_c(
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H eapol_ethernet_header_base_c(
 			abs_eap_am_tools_c * const tools,
 			void * const header_buffer,
 			const u32_t header_buffer_length);
 
 	/// This function returns pointer to the destination address of the Ethernet-packet.
-	EAP_FUNC_IMPORT u8_t * get_destination() const;
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H u8_t * get_destination() const;
 
 	/// This function returns pointer to the source address of the Ethernet-packet.
-	EAP_FUNC_IMPORT u8_t * get_source() const;
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H u8_t * get_source() const;
 
 	/// This function returns length of the destination address of the Ethernet-packet.
-	EAP_FUNC_IMPORT u32_t get_destination_length() const;
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H u32_t get_destination_length() const;
 
 	/// This function returns length of the source address of the Ethernet-packet.
-	EAP_FUNC_IMPORT u32_t get_source_length() const;
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H u32_t get_source_length() const;
 
 	/// This function returns the packet type field of Ethernet-header.
-	EAP_FUNC_IMPORT u16_t get_type() const;
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H u16_t get_type() const;
 
 	/// This function returns pointer to the data of the Ethernet-packet.
-	EAP_FUNC_IMPORT u8_t * get_data(const u32_t data_length) const;
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H u8_t * get_data(const u32_t data_length) const;
 
 	/// This function returns the length of the data of Ethernet-header.
-	EAP_FUNC_IMPORT u32_t get_data_length() const;
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H u32_t get_data_length() const;
 
 	/// This function returns the header length of the Ethernet-packet.
-	EAP_FUNC_IMPORT static u16_t get_header_length();
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H static u16_t get_header_length();
 
 	/// This function sets the packet type field of the Ethernet-header.
-	EAP_FUNC_IMPORT void set_type(const eapol_ethernet_type_e type);
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H void set_type(const eapol_ethernet_type_e type);
 
 	/// This function checks the validity of Ethernet-header.
-	EAP_FUNC_IMPORT eap_status_e check_header() const;
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H eap_status_e check_header() const;
 
 	// 
 	//--------------------------------------------------
@@ -125,7 +148,7 @@
 
 
 /// @{ This class can be removed. eapol_ethernet_header_base_c could be used instead. }
-class EAP_EXPORT eapol_ethernet_header_rd_c
+class EAP_CLASS_VISIBILITY_EAPOL_ETHERNET_HEADER_H eapol_ethernet_header_rd_c
 : public eapol_ethernet_header_base_c
 {
 private:
@@ -143,19 +166,19 @@
 	//--------------------------------------------------
 
 	/// Destructor does nothing special.
-	EAP_FUNC_IMPORT virtual ~eapol_ethernet_header_rd_c();
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H virtual ~eapol_ethernet_header_rd_c();
 
 	/// Constructor does nothing special.
 	/// The tools parameter is pointer to tools object.
 	/// The header_buffer parameter is pointer to buffer of Ethernet-packet including header and data.
 	/// The header_buffer_length parameter is length of the header_buffer.
-	EAP_FUNC_IMPORT eapol_ethernet_header_rd_c(
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H eapol_ethernet_header_rd_c(
 			abs_eap_am_tools_c * const tools,
 			const u8_t * const header_buffer,
 			const u32_t header_buffer_length);
 
 	/// This function returns pointer to the header of the EAPOL-packet included in the Ethernet-packet.
-	EAP_FUNC_IMPORT u8_t * get_eapol_header() const;
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H u8_t * get_eapol_header() const;
 
 	// 
 	//--------------------------------------------------
@@ -164,7 +187,7 @@
 
 
 /// @{ This class can be removed. eapol_ethernet_header_base_c could be used instead. }
-class EAP_EXPORT eapol_ethernet_header_wr_c
+class EAP_CLASS_VISIBILITY_EAPOL_ETHERNET_HEADER_H eapol_ethernet_header_wr_c
 : public eapol_ethernet_header_base_c
 {
 private:
@@ -182,30 +205,30 @@
 	//--------------------------------------------------
 
 	/// Destructor does nothing special.
-	EAP_FUNC_IMPORT virtual ~eapol_ethernet_header_wr_c();
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H virtual ~eapol_ethernet_header_wr_c();
 
 	/// Constructor does nothing special.
 	/// The tools parameter is pointer to tools object.
 	/// The header_buffer parameter is pointer to buffer of Ethernet-packet including header and data.
 	/// The header_buffer_length parameter is length of the header_buffer.
-	EAP_FUNC_IMPORT eapol_ethernet_header_wr_c(
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H eapol_ethernet_header_wr_c(
 			abs_eap_am_tools_c * const tools,
 			const u8_t * const header_buffer,
 			const u32_t header_buffer_length);
 
 	/// This function returns pointer to the header of the EAPOL-packet included in the Ethernet-packet.
-	EAP_FUNC_IMPORT u8_t * get_eapol_header() const;
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H u8_t * get_eapol_header() const;
 
 	/// This function returns pointer to the destination address of the Ethernet-packet.
-	EAP_FUNC_IMPORT u8_t * get_destination();
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H u8_t * get_destination();
 
 	/// This function returns pointer to the source address of the Ethernet-packet.
-	EAP_FUNC_IMPORT u8_t * get_source();
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H u8_t * get_source();
 
 	/// This function resets the EAPOL-header.
 	/// The type parameter is the type of Ethernet-packet.
 	/// The buffer_length parameter is the length of the EAPOL-header and the following data buffer.
-	EAP_FUNC_IMPORT void reset_header(const eapol_ethernet_type_e type, const u16_t buffer_length);
+	EAP_FUNC_VISIBILITY_EAPOL_ETHERNET_HEADER_H void reset_header(const eapol_ethernet_type_e type, const u16_t buffer_length);
 
 	// 
 	//--------------------------------------------------