eapol/eapol_framework/eapol_common/include/eapol_handle_tlv_message_data.h
changeset 52 c23bdf5a328a
parent 33 938269283a16
equal deleted inserted replaced
51:e863583e6720 52:c23bdf5a328a
    25 #include "eap_am_types.h"
    25 #include "eap_am_types.h"
    26 #include "eap_tools.h"
    26 #include "eap_tools.h"
    27 #include "eap_array.h"
    27 #include "eap_array.h"
    28 #include "eap_process_tlv_message_data.h"
    28 #include "eap_process_tlv_message_data.h"
    29 #include "eap_expanded_type.h"
    29 #include "eap_expanded_type.h"
       
    30 #include "eap_am_export.h"
       
    31 // Start: added by script change_export_macros.sh.
       
    32 #if defined(EAP_NO_EXPORT_EAPOL_HANDLE_TLV_MESSAGE_DATA_H)
       
    33 	#define EAP_CLASS_VISIBILITY_EAPOL_HANDLE_TLV_MESSAGE_DATA_H EAP_NONSHARABLE 
       
    34 	#define EAP_FUNC_VISIBILITY_EAPOL_HANDLE_TLV_MESSAGE_DATA_H 
       
    35 	#define EAP_C_FUNC_VISIBILITY_EAPOL_HANDLE_TLV_MESSAGE_DATA_H 
       
    36 	#define EAP_FUNC_EXPORT_EAPOL_HANDLE_TLV_MESSAGE_DATA_H 
       
    37 	#define EAP_C_FUNC_EXPORT_EAPOL_HANDLE_TLV_MESSAGE_DATA_H 
       
    38 #elif defined(EAP_EXPORT_EAPOL_HANDLE_TLV_MESSAGE_DATA_H)
       
    39 	#define EAP_CLASS_VISIBILITY_EAPOL_HANDLE_TLV_MESSAGE_DATA_H EAP_EXPORT 
       
    40 	#define EAP_FUNC_VISIBILITY_EAPOL_HANDLE_TLV_MESSAGE_DATA_H EAP_FUNC_EXPORT 
       
    41 	#define EAP_C_FUNC_VISIBILITY_EAPOL_HANDLE_TLV_MESSAGE_DATA_H EAP_C_FUNC_EXPORT 
       
    42 	#define EAP_FUNC_EXPORT_EAPOL_HANDLE_TLV_MESSAGE_DATA_H EAP_FUNC_EXPORT 
       
    43 	#define EAP_C_FUNC_EXPORT_EAPOL_HANDLE_TLV_MESSAGE_DATA_H EAP_C_FUNC_EXPORT 
       
    44 #else
       
    45 	#define EAP_CLASS_VISIBILITY_EAPOL_HANDLE_TLV_MESSAGE_DATA_H EAP_IMPORT 
       
    46 	#define EAP_FUNC_VISIBILITY_EAPOL_HANDLE_TLV_MESSAGE_DATA_H EAP_FUNC_IMPORT 
       
    47 	#define EAP_C_FUNC_VISIBILITY_EAPOL_HANDLE_TLV_MESSAGE_DATA_H EAP_C_FUNC_IMPORT 
       
    48 	#define EAP_FUNC_EXPORT_EAPOL_HANDLE_TLV_MESSAGE_DATA_H 
       
    49 	#define EAP_C_FUNC_EXPORT_EAPOL_HANDLE_TLV_MESSAGE_DATA_H 
       
    50 #endif
       
    51 // End: added by script change_export_macros.sh.
       
    52 
    30 
    53 
    31 /** @file */
    54 /** @file */
    32 
    55 
    33 class eap_variable_data_c;
    56 class eap_variable_data_c;
    34 class eap_am_network_id_c;
    57 class eap_am_network_id_c;
    42 //----------------------------------------------------------------------------
    65 //----------------------------------------------------------------------------
    43 
    66 
    44 
    67 
    45 /// This class defines functions to add and parse message data composed
    68 /// This class defines functions to add and parse message data composed
    46 /// of Attribute-Value Pairs (See eap_tlv_header_c) to/from eap_tlv_message_data_c object.
    69 /// of Attribute-Value Pairs (See eap_tlv_header_c) to/from eap_tlv_message_data_c object.
    47 class EAP_EXPORT eapol_handle_tlv_message_data_c
    70 class EAP_CLASS_VISIBILITY_EAPOL_HANDLE_TLV_MESSAGE_DATA_H eapol_handle_tlv_message_data_c
    48 : public eap_process_tlv_message_data_c
    71 : public eap_process_tlv_message_data_c
    49 {
    72 {
    50 private:
    73 private:
    51 	//--------------------------------------------------
    74 	//--------------------------------------------------
    52 
    75 
    63 	//--------------------------------------------------
    86 	//--------------------------------------------------
    64 
    87 
    65 	/**
    88 	/**
    66 	 * The destructor of the eapol_handle_tlv_message_data_c class does nothing.
    89 	 * The destructor of the eapol_handle_tlv_message_data_c class does nothing.
    67 	 */
    90 	 */
    68 	EAP_FUNC_IMPORT virtual ~eapol_handle_tlv_message_data_c();
    91 	EAP_FUNC_VISIBILITY_EAPOL_HANDLE_TLV_MESSAGE_DATA_H virtual ~eapol_handle_tlv_message_data_c();
    69 
    92 
    70 	/**
    93 	/**
    71 	 * The constructor of the eapol_handle_tlv_message_data_c class simply initializes the attributes.
    94 	 * The constructor of the eapol_handle_tlv_message_data_c class simply initializes the attributes.
    72 	 */
    95 	 */
    73 	EAP_FUNC_IMPORT eapol_handle_tlv_message_data_c(
    96 	EAP_FUNC_VISIBILITY_EAPOL_HANDLE_TLV_MESSAGE_DATA_H eapol_handle_tlv_message_data_c(
    74 		abs_eap_am_tools_c * const tools);
    97 		abs_eap_am_tools_c * const tools);
    75 
    98 
    76 	/**
    99 	/**
    77 	 * Object must indicate it's validity.
   100 	 * Object must indicate it's validity.
    78 	 * If object initialization fails this function must return false.
   101 	 * If object initialization fails this function must return false.
    79 	 * @return This function returns the validity of this object.
   102 	 * @return This function returns the validity of this object.
    80 	 */
   103 	 */
    81 	EAP_FUNC_IMPORT bool get_is_valid();
   104 	EAP_FUNC_VISIBILITY_EAPOL_HANDLE_TLV_MESSAGE_DATA_H bool get_is_valid();
    82 
   105 
    83 	// 
   106 	// 
    84 	//--------------------------------------------------
   107 	//--------------------------------------------------
    85 }; // class eapol_handle_tlv_message_data_c
   108 }; // class eapol_handle_tlv_message_data_c
    86 
   109