eapol/eapol_framework/eapol_common/type/diameter/include/eap_diameter_payloads.h
changeset 52 c23bdf5a328a
parent 33 938269283a16
--- a/eapol/eapol_framework/eapol_common/type/diameter/include/eap_diameter_payloads.h	Fri Sep 17 08:30:11 2010 +0300
+++ b/eapol/eapol_framework/eapol_common/type/diameter/include/eap_diameter_payloads.h	Mon Oct 04 00:19:54 2010 +0300
@@ -24,13 +24,34 @@
 
 #include "eap_variable_data.h"
 #include "eap_am_export.h"
+// Start: added by script change_export_macros.sh.
+#if defined(EAP_NO_EXPORT_EAP_DIAMETER_PAYLOADS_H)
+	#define EAP_CLASS_VISIBILITY_EAP_DIAMETER_PAYLOADS_H EAP_NONSHARABLE 
+	#define EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H 
+	#define EAP_C_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H 
+	#define EAP_FUNC_EXPORT_EAP_DIAMETER_PAYLOADS_H 
+	#define EAP_C_FUNC_EXPORT_EAP_DIAMETER_PAYLOADS_H 
+#elif defined(EAP_EXPORT_EAP_DIAMETER_PAYLOADS_H)
+	#define EAP_CLASS_VISIBILITY_EAP_DIAMETER_PAYLOADS_H EAP_EXPORT 
+	#define EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H EAP_FUNC_EXPORT 
+	#define EAP_C_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H EAP_C_FUNC_EXPORT 
+	#define EAP_FUNC_EXPORT_EAP_DIAMETER_PAYLOADS_H EAP_FUNC_EXPORT 
+	#define EAP_C_FUNC_EXPORT_EAP_DIAMETER_PAYLOADS_H EAP_C_FUNC_EXPORT 
+#else
+	#define EAP_CLASS_VISIBILITY_EAP_DIAMETER_PAYLOADS_H EAP_IMPORT 
+	#define EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H EAP_FUNC_IMPORT 
+	#define EAP_C_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H EAP_C_FUNC_IMPORT 
+	#define EAP_FUNC_EXPORT_EAP_DIAMETER_PAYLOADS_H 
+	#define EAP_C_FUNC_EXPORT_EAP_DIAMETER_PAYLOADS_H 
+#endif
+// End: added by script change_export_macros.sh.
 #include "eap_diameter_avp_header.h"
 #include "eap_diameter_avp_code.h"
 #include "eap_core_map.h"
 #include "eap_array.h"
 
 
-class EAP_EXPORT eap_diameter_variable_data_c
+class EAP_CLASS_VISIBILITY_EAP_DIAMETER_PAYLOADS_H eap_diameter_variable_data_c
 {
 private:
 	//--------------------------------------------------
@@ -51,11 +72,11 @@
 public:
 	//--------------------------------------------------
 
-	EAP_FUNC_IMPORT virtual ~eap_diameter_variable_data_c();
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H virtual ~eap_diameter_variable_data_c();
 
-	EAP_FUNC_IMPORT eap_diameter_variable_data_c(abs_eap_am_tools_c * const tools);
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H eap_diameter_variable_data_c(abs_eap_am_tools_c * const tools);
 
-	EAP_FUNC_IMPORT eap_status_e set_buffer(
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H eap_status_e set_buffer(
 		const eap_diameter_avp_code_c current_payload_code,
 		const bool is_mandatory,
 		const u8_t * const buffer,
@@ -63,25 +84,25 @@
 		const bool free_buffer,
 		const bool is_writable);
 
-	EAP_FUNC_IMPORT eap_status_e add_data(
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H eap_status_e add_data(
 		const u8_t * const buffer,
 		const u32_t buffer_length);
 
-	EAP_FUNC_IMPORT u32_t get_data_length() const;
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H u32_t get_data_length() const;
 
-	EAP_FUNC_IMPORT u8_t * get_data(const u32_t data_length) const;
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H u8_t * get_data(const u32_t data_length) const;
 
-	EAP_FUNC_IMPORT eap_variable_data_c * get_payload_buffer();
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H eap_variable_data_c * get_payload_buffer();
 
-	EAP_FUNC_IMPORT eap_diameter_avp_code_c get_payload_code() const;
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H eap_diameter_avp_code_c get_payload_code() const;
 
-	EAP_FUNC_IMPORT bool get_is_mandatory() const;
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H bool get_is_mandatory() const;
 
-	EAP_FUNC_IMPORT void set_payload_code(const eap_diameter_avp_code_c code);
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H void set_payload_code(const eap_diameter_avp_code_c code);
 
-	EAP_FUNC_IMPORT eap_diameter_variable_data_c * copy() const;
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H eap_diameter_variable_data_c * copy() const;
 
-	EAP_FUNC_IMPORT  void object_increase_reference_count();
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H  void object_increase_reference_count();
 
 	//--------------------------------------------------
 }; // class eap_diameter_variable_data_c
@@ -91,7 +112,7 @@
 
 
 // 
-class EAP_EXPORT eap_diameter_payloads_c
+class EAP_CLASS_VISIBILITY_EAP_DIAMETER_PAYLOADS_H eap_diameter_payloads_c
 : public abs_eap_core_map_c
 {
 private:
@@ -116,15 +137,15 @@
 public:
 	//--------------------------------------------------
 
-	EAP_FUNC_IMPORT virtual ~eap_diameter_payloads_c();
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H virtual ~eap_diameter_payloads_c();
 
-	EAP_FUNC_IMPORT eap_diameter_payloads_c(
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H eap_diameter_payloads_c(
 		abs_eap_am_tools_c * const tools);
 
-	EAP_FUNC_IMPORT eap_diameter_variable_data_c * get_payload(
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H eap_diameter_variable_data_c * get_payload(
 		const eap_diameter_avp_code_c current_payload);
 
-	EAP_FUNC_IMPORT eap_status_e add_payload(
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H eap_status_e add_payload(
 		const eap_diameter_avp_code_c current_payload,
 		const bool is_mandatory,
 		const u8_t * const data,
@@ -141,7 +162,7 @@
 	 * function returns eap_status_header_corrupted.
 	 * Also error is returned when illegal payload attribute is recognised.
 	 */
-	EAP_FUNC_IMPORT eap_status_e parse_diameter_payloads(
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H eap_status_e parse_diameter_payloads(
 		const eap_diameter_avp_header_c * const p_payload, ///< This is the start of the buffer and the first parsed payload.
 		u32_t * const buffer_length ///< This is the length of the buffer. This must match with the length of all payloads.
 		);
@@ -151,7 +172,7 @@
 	 * @return If payload attribute is illegal function returns eap_status_header_corrupted.
 	 * If payload attribute is unknown function returns eap_status_unsupported_payload.
 	 */
-	EAP_FUNC_IMPORT eap_status_e parse_generic_payload(
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H eap_status_e parse_generic_payload(
 		const eap_diameter_avp_code_c current_payload, ///< This is the type of current payload attribute.
 		const eap_diameter_avp_header_c * const payload ///< This is the current parsed payload.
 		);
@@ -159,18 +180,18 @@
 	/**
 	 * This function checks all mandatory AVPs are used.
 	 */
-	EAP_FUNC_IMPORT eap_status_e check_mandatory_payloads(
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H eap_status_e check_mandatory_payloads(
 		EAP_TEMPLATE_CONST eap_array_c<eap_diameter_avp_code_c> * const used_payloads);
 
 	/**
 	 * This function checks all required AVPs are received.
 	 */
-	EAP_FUNC_IMPORT eap_status_e check_payloads_existense(
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H eap_status_e check_payloads_existense(
 		EAP_TEMPLATE_CONST eap_array_c<eap_diameter_avp_code_c> * const needed_payloads);
 
-	EAP_FUNC_IMPORT bool get_is_valid() const;
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H bool get_is_valid() const;
 
-	EAP_FUNC_IMPORT eap_status_e reset();
+	EAP_FUNC_VISIBILITY_EAP_DIAMETER_PAYLOADS_H eap_status_e reset();
 
 	//--------------------------------------------------
 }; // class eap_diameter_payloads_c