equal
deleted
inserted
replaced
14 * Description: EAP and WLAN authentication protocols. |
14 * Description: EAP and WLAN authentication protocols. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 13.1.2 % |
19 * %version: % |
20 */ |
20 */ |
21 |
21 |
22 #if !defined(_EAP_AUTOMATIC_VARIABLE_H_) |
22 #if !defined(_EAP_AUTOMATIC_VARIABLE_H_) |
23 #define _EAP_AUTOMATIC_VARIABLE_H_ |
23 #define _EAP_AUTOMATIC_VARIABLE_H_ |
24 |
24 |
242 abs_eap_am_tools_c * const m_am_tools; |
242 abs_eap_am_tools_c * const m_am_tools; |
243 |
243 |
244 /// This is pointer to the string that will be traced on destructor. |
244 /// This is pointer to the string that will be traced on destructor. |
245 eap_format_string m_string; |
245 eap_format_string m_string; |
246 |
246 |
|
247 u32_t m_trace_flags; |
|
248 |
247 public: |
249 public: |
248 |
250 |
249 /** |
251 /** |
250 * The destructor traces the string. |
252 * The destructor traces the string. |
251 */ |
253 */ |
255 |
257 |
256 if (m_string != 0) |
258 if (m_string != 0) |
257 { |
259 { |
258 EAP_TRACE_DEBUG( |
260 EAP_TRACE_DEBUG( |
259 m_am_tools, |
261 m_am_tools, |
260 TRACE_FLAGS_DEFAULT, |
262 m_trace_flags, |
261 (EAPL("<<< %s <<<\n"), m_string)); |
263 (EAPL("<<< %s <<<\n"), m_string)); |
262 } |
264 } |
263 |
265 |
264 EAP_TRACE_END(m_am_tools, TRACE_FLAGS_DEFAULT); |
266 EAP_TRACE_END(m_am_tools, TRACE_FLAGS_DEFAULT); |
265 } |
267 } |
269 */ |
271 */ |
270 eap_automatic_trace_string_c( |
272 eap_automatic_trace_string_c( |
271 abs_eap_am_tools_c * const tools, |
273 abs_eap_am_tools_c * const tools, |
272 eap_format_string string) |
274 eap_format_string string) |
273 : m_am_tools(tools) |
275 : m_am_tools(tools) |
|
276 , m_string(string) |
|
277 , m_trace_flags(TRACE_FLAGS_DEFAULT) |
|
278 { |
|
279 EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT); |
|
280 EAP_TRACE_END(m_am_tools, TRACE_FLAGS_DEFAULT); |
|
281 } |
|
282 |
|
283 /** |
|
284 * The constructor sets the values for the member variables |
|
285 */ |
|
286 eap_automatic_trace_string_c( |
|
287 abs_eap_am_tools_c * const tools, |
|
288 const u32_t flags, |
|
289 eap_format_string string) |
|
290 : m_am_tools(tools) |
274 , m_string(string) |
291 , m_string(string) |
|
292 , m_trace_flags(flags) |
275 { |
293 { |
276 EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT); |
294 EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT); |
277 EAP_TRACE_END(m_am_tools, TRACE_FLAGS_DEFAULT); |
295 EAP_TRACE_END(m_am_tools, TRACE_FLAGS_DEFAULT); |
278 } |
296 } |
279 }; |
297 }; |