14 * Description: EAP and WLAN authentication protocols. |
14 * Description: EAP and WLAN authentication protocols. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: % |
19 * %version: 12 % |
20 */ |
20 */ |
21 |
21 |
22 #if !defined(_EAP_TYPE_MAP_H_) |
22 #if !defined(_EAP_TYPE_MAP_H_) |
23 #define _EAP_TYPE_MAP_H_ |
23 #define _EAP_TYPE_MAP_H_ |
24 |
24 |
25 #include "eap_am_memory.h" |
25 #include "eap_am_memory.h" |
26 #include "eap_am_export.h" |
26 #include "eap_am_export.h" |
|
27 // Start: added by script change_export_macros.sh. |
|
28 #if defined(EAP_NO_EXPORT_EAP_CORE_MAP_H) |
|
29 #define EAP_CLASS_VISIBILITY_EAP_CORE_MAP_H EAP_NONSHARABLE |
|
30 #define EAP_FUNC_VISIBILITY_EAP_CORE_MAP_H |
|
31 #define EAP_C_FUNC_VISIBILITY_EAP_CORE_MAP_H |
|
32 #define EAP_FUNC_EXPORT_EAP_CORE_MAP_H |
|
33 #define EAP_C_FUNC_EXPORT_EAP_CORE_MAP_H |
|
34 #elif defined(EAP_EXPORT_EAP_CORE_MAP_H) |
|
35 #define EAP_CLASS_VISIBILITY_EAP_CORE_MAP_H EAP_EXPORT |
|
36 #define EAP_FUNC_VISIBILITY_EAP_CORE_MAP_H EAP_FUNC_EXPORT |
|
37 #define EAP_C_FUNC_VISIBILITY_EAP_CORE_MAP_H EAP_C_FUNC_EXPORT |
|
38 #define EAP_FUNC_EXPORT_EAP_CORE_MAP_H EAP_FUNC_EXPORT |
|
39 #define EAP_C_FUNC_EXPORT_EAP_CORE_MAP_H EAP_C_FUNC_EXPORT |
|
40 #else |
|
41 #define EAP_CLASS_VISIBILITY_EAP_CORE_MAP_H EAP_IMPORT |
|
42 #define EAP_FUNC_VISIBILITY_EAP_CORE_MAP_H EAP_FUNC_IMPORT |
|
43 #define EAP_C_FUNC_VISIBILITY_EAP_CORE_MAP_H EAP_C_FUNC_IMPORT |
|
44 #define EAP_FUNC_EXPORT_EAP_CORE_MAP_H |
|
45 #define EAP_C_FUNC_EXPORT_EAP_CORE_MAP_H |
|
46 #endif |
|
47 // End: added by script change_export_macros.sh. |
27 #include "abs_eap_core_map.h" |
48 #include "abs_eap_core_map.h" |
28 #include "eap_variable_data.h" |
49 #include "eap_variable_data.h" |
29 #include "eap_am_tools.h" |
50 #include "eap_am_tools.h" |
30 |
51 |
31 |
52 |
226 * |
247 * |
227 * @endcode |
248 * @endcode |
228 * |
249 * |
229 */ |
250 */ |
230 template <class Type, class Abs_Type, class Selector_Type> |
251 template <class Type, class Abs_Type, class Selector_Type> |
231 class EAP_EXPORT eap_core_map_c |
252 class EAP_CLASS_VISIBILITY_EAP_CORE_MAP_H eap_core_map_c |
232 { |
253 { |
233 private: |
254 private: |
234 //-------------------------------------------------- |
255 //-------------------------------------------------- |
235 |
256 |
236 /// This is back pointer to object which created this object. |
257 /// This is back pointer to object which created this object. |
351 } |
372 } |
352 |
373 |
353 if (cursor != 0) |
374 if (cursor != 0) |
354 { |
375 { |
355 // Already exists. |
376 // Already exists. |
|
377 EAP_TRACE_DEBUG( |
|
378 m_am_tools, |
|
379 TRACE_FLAGS_DEFAULT, |
|
380 (EAPL("WARNING: CORE_MAP: add_handler(): index %d\n"), |
|
381 index)); |
|
382 |
|
383 EAP_TRACE_DATA_DEBUG( |
|
384 m_am_tools, |
|
385 TRACE_FLAGS_DEFAULT, |
|
386 (EAPL("WARNING: CORE_MAP: cursor"), |
|
387 cursor->get_selector()->get_data(cursor->get_selector()->get_data_length()), |
|
388 cursor->get_selector()->get_data_length())); |
|
389 |
356 return EAP_STATUS_RETURN(m_am_tools, eap_status_handler_exists_error); |
390 return EAP_STATUS_RETURN(m_am_tools, eap_status_handler_exists_error); |
357 } |
391 } |
358 else |
392 else |
359 { |
393 { |
360 eap_state_map_atom_c<Type, Selector_Type> *atom |
394 eap_state_map_atom_c<Type, Selector_Type> *atom |