--- a/eapol/eapol_framework/eapol_common/type/radius/include/eap_radius_payloads.h Fri Sep 03 09:22:44 2010 +0300
+++ b/eapol/eapol_framework/eapol_common/type/radius/include/eap_radius_payloads.h Thu Sep 16 13:07:04 2010 +0300
@@ -24,12 +24,33 @@
#include "eap_variable_data.h"
#include "eap_am_export.h"
+// Start: added by script change_export_macros.sh.
+#if defined(EAP_NO_EXPORT_EAP_RADIUS_PAYLOADS_H)
+ #define EAP_CLASS_VISIBILITY_EAP_RADIUS_PAYLOADS_H EAP_NONSHARABLE
+ #define EAP_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H
+ #define EAP_C_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H
+ #define EAP_FUNC_EXPORT_EAP_RADIUS_PAYLOADS_H
+ #define EAP_C_FUNC_EXPORT_EAP_RADIUS_PAYLOADS_H
+#elif defined(EAP_EXPORT_EAP_RADIUS_PAYLOADS_H)
+ #define EAP_CLASS_VISIBILITY_EAP_RADIUS_PAYLOADS_H EAP_EXPORT
+ #define EAP_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H EAP_FUNC_EXPORT
+ #define EAP_C_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H EAP_C_FUNC_EXPORT
+ #define EAP_FUNC_EXPORT_EAP_RADIUS_PAYLOADS_H EAP_FUNC_EXPORT
+ #define EAP_C_FUNC_EXPORT_EAP_RADIUS_PAYLOADS_H EAP_C_FUNC_EXPORT
+#else
+ #define EAP_CLASS_VISIBILITY_EAP_RADIUS_PAYLOADS_H EAP_IMPORT
+ #define EAP_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H EAP_FUNC_IMPORT
+ #define EAP_C_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H EAP_C_FUNC_IMPORT
+ #define EAP_FUNC_EXPORT_EAP_RADIUS_PAYLOADS_H
+ #define EAP_C_FUNC_EXPORT_EAP_RADIUS_PAYLOADS_H
+#endif
+// End: added by script change_export_macros.sh.
#include "eap_radius_header.h"
#include "eap_radius_attribute_header.h"
#include "eap_core_map.h"
-class EAP_EXPORT eap_radius_variable_data_c
+class EAP_CLASS_VISIBILITY_EAP_RADIUS_PAYLOADS_H eap_radius_variable_data_c
{
private:
//--------------------------------------------------
@@ -48,34 +69,34 @@
public:
//--------------------------------------------------
- EAP_FUNC_IMPORT virtual ~eap_radius_variable_data_c();
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H virtual ~eap_radius_variable_data_c();
- EAP_FUNC_IMPORT eap_radius_variable_data_c(abs_eap_am_tools_c * const tools);
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H eap_radius_variable_data_c(abs_eap_am_tools_c * const tools);
- EAP_FUNC_IMPORT eap_status_e set_buffer(
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H eap_status_e set_buffer(
const eap_diameter_avp_code_c current_payload,
const u8_t * const buffer,
const u32_t buffer_length,
const bool free_buffer,
const bool is_writable);
- EAP_FUNC_IMPORT eap_status_e add_data(
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_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_RADIUS_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_RADIUS_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_RADIUS_PAYLOADS_H eap_variable_data_c * get_payload_buffer();
- EAP_FUNC_IMPORT eap_diameter_avp_code_c get_payload_type() const;
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H eap_diameter_avp_code_c get_payload_type() const;
- EAP_FUNC_IMPORT void set_payload_type(const eap_diameter_avp_code_c type);
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H void set_payload_type(const eap_diameter_avp_code_c type);
- EAP_FUNC_IMPORT eap_radius_variable_data_c * copy() const;
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H eap_radius_variable_data_c * copy() const;
- EAP_FUNC_IMPORT void object_increase_reference_count();
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H void object_increase_reference_count();
//--------------------------------------------------
}; // class eap_radius_variable_data_c
@@ -85,7 +106,7 @@
//
-class EAP_EXPORT eap_radius_payloads_c
+class EAP_CLASS_VISIBILITY_EAP_RADIUS_PAYLOADS_H eap_radius_payloads_c
: public abs_eap_core_map_c
{
private:
@@ -106,15 +127,15 @@
public:
//--------------------------------------------------
- EAP_FUNC_IMPORT virtual ~eap_radius_payloads_c();
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H virtual ~eap_radius_payloads_c();
- EAP_FUNC_IMPORT eap_radius_payloads_c(
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H eap_radius_payloads_c(
abs_eap_am_tools_c * const tools);
- EAP_FUNC_IMPORT eap_radius_variable_data_c * get_payload(
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H eap_radius_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_RADIUS_PAYLOADS_H eap_status_e add_payload(
const eap_diameter_avp_code_c current_payload,
const u8_t * const data,
const u32_t data_length,
@@ -130,7 +151,7 @@
* function returns eap_status_header_corrupted.
* Also error is returned when illegal payload attribute is recognised.
*/
- EAP_FUNC_IMPORT eap_status_e parse_radius_payload(
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H eap_status_e parse_radius_payload(
const eap_radius_attribute_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.
);
@@ -140,13 +161,13 @@
* @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_RADIUS_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_radius_attribute_header_c * const payload ///< This is the current parsed payload.
);
- EAP_FUNC_IMPORT bool get_is_valid() const;
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_PAYLOADS_H bool get_is_valid() const;
//--------------------------------------------------
}; // class eap_radius_payloads_c