--- a/eapol/eapol_framework/eapol_common/type/radius/include/eap_radius_header.h Fri Sep 03 09:22:44 2010 +0300
+++ b/eapol/eapol_framework/eapol_common/type/radius/include/eap_radius_header.h Thu Sep 16 13:07:04 2010 +0300
@@ -25,6 +25,29 @@
#include "eap_general_header_base.h"
#include "eap_am_types.h"
+#include "eap_am_export.h"
+// Start: added by script change_export_macros.sh.
+#if defined(EAP_NO_EXPORT_EAP_RADIUS_HEADER_H)
+ #define EAP_CLASS_VISIBILITY_EAP_RADIUS_HEADER_H EAP_NONSHARABLE
+ #define EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H
+ #define EAP_C_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H
+ #define EAP_FUNC_EXPORT_EAP_RADIUS_HEADER_H
+ #define EAP_C_FUNC_EXPORT_EAP_RADIUS_HEADER_H
+#elif defined(EAP_EXPORT_EAP_RADIUS_HEADER_H)
+ #define EAP_CLASS_VISIBILITY_EAP_RADIUS_HEADER_H EAP_EXPORT
+ #define EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H EAP_FUNC_EXPORT
+ #define EAP_C_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H EAP_C_FUNC_EXPORT
+ #define EAP_FUNC_EXPORT_EAP_RADIUS_HEADER_H EAP_FUNC_EXPORT
+ #define EAP_C_FUNC_EXPORT_EAP_RADIUS_HEADER_H EAP_C_FUNC_EXPORT
+#else
+ #define EAP_CLASS_VISIBILITY_EAP_RADIUS_HEADER_H EAP_IMPORT
+ #define EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H EAP_FUNC_IMPORT
+ #define EAP_C_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H EAP_C_FUNC_IMPORT
+ #define EAP_FUNC_EXPORT_EAP_RADIUS_HEADER_H
+ #define EAP_C_FUNC_EXPORT_EAP_RADIUS_HEADER_H
+#endif
+// End: added by script change_export_macros.sh.
+
/** @file */
@@ -64,7 +87,7 @@
* +-+-+-+-+-+-+-+-+-+-+-+-+-
* @endcode
*/
-class EAP_EXPORT eap_radius_header_base_c
+class EAP_CLASS_VISIBILITY_EAP_RADIUS_HEADER_H eap_radius_header_base_c
: public eap_general_header_base_c
{
private:
@@ -94,68 +117,68 @@
};
/// Destructor does nothing special.
- EAP_FUNC_IMPORT virtual ~eap_radius_header_base_c();
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H virtual ~eap_radius_header_base_c();
/// Constructor does nothing special.
/// The tools parameter is pointer to tools object.
/// The header_buffer parameter is pointer to buffer of RADIUS-packet including header and data.
/// The header_buffer_length parameter is length of the header_buffer.
- EAP_FUNC_IMPORT eap_radius_header_base_c(
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H eap_radius_header_base_c(
abs_eap_am_tools_c * const tools,
void * const header_buffer,
const u32_t header_buffer_length);
/// This function returns the header length of the RADIUS-packet.
- EAP_FUNC_IMPORT static u32_t get_header_length();
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H static u32_t get_header_length();
/// This function returns the code field of RADIUS-header.
- EAP_FUNC_IMPORT eap_radius_code_value_e get_code() const;
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H eap_radius_code_value_e get_code() const;
/// This function returns the authenticator field of RADIUS-header.
- EAP_FUNC_IMPORT u8_t * get_authenticator() const;
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H u8_t * get_authenticator() const;
/// This function returns the length of the authenticator field of RADIUS-header.
- EAP_FUNC_IMPORT u32_t get_authenticator_length() const;
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H u32_t get_authenticator_length() const;
/// This function returns the identifier field of RADIUS-header.
- EAP_FUNC_IMPORT u8_t get_identifier() const;
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H u8_t get_identifier() const;
/// This function returns the length field of RADIUS-header.
- EAP_FUNC_IMPORT u16_t get_length() const;
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H u16_t get_length() const;
/// This function returns the length of the attribute data of RADIUS-header.
- EAP_FUNC_IMPORT u16_t get_data_length() const;
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H u16_t get_data_length() const;
/// This function returns the pointer to the offset of the attribute field of RADIUS-packet.
/// Data field includes type field.
- EAP_FUNC_IMPORT u8_t * get_data_offset(
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H u8_t * get_data_offset(
const u32_t p_offset, const u32_t p_continuous_bytes) const;
/// This function sets the code field of the RADIUS-header.
- EAP_FUNC_IMPORT void set_code(const eap_radius_code_value_e p_code);
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H void set_code(const eap_radius_code_value_e p_code);
/// This function sets the identifier field of the RADIUS-header.
- EAP_FUNC_IMPORT void set_identifier(const u8_t p_identifier);
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H void set_identifier(const u8_t p_identifier);
/// This function sets the length field of the RADIUS-header.
- EAP_FUNC_IMPORT void set_length(const u16_t p_length);
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H void set_length(const u16_t p_length);
/// This function sets the length field of the RADIUS-header
/// based on attribute data length.
- EAP_FUNC_IMPORT void set_data_length(const u16_t p_length);
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H void set_data_length(const u16_t p_length);
/// This function returns debug string of the code of the RADIUS-packet.
- EAP_FUNC_IMPORT eap_const_string get_code_string() const;
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H eap_const_string get_code_string() const;
/// This function checks the validity of RADIUS-header.
- EAP_FUNC_IMPORT eap_status_e check_header() const;
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H eap_status_e check_header() const;
/// This function resets the RADIUS-header.
/// The buffer_length parameter is the length of the RADISU-header and the following attribute data buffer.
- EAP_FUNC_IMPORT void reset_header(u16_t buffer_length);
+ EAP_FUNC_VISIBILITY_EAP_RADIUS_HEADER_H void reset_header(u16_t buffer_length);
//
//--------------------------------------------------