|
1 /* |
|
2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: macros for logging |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef NATFWSTUNSERVERLOGS_H |
|
22 #define NATFWSTUNSERVERLOGS_H |
|
23 |
|
24 |
|
25 #include "natfwlogs.h" |
|
26 |
|
27 #ifdef _DEBUG |
|
28 #define __NATFW_STUNSERVER |
|
29 #endif |
|
30 |
|
31 #ifdef __NATFW_STUNSERVER |
|
32 _LIT(KNATFWStunServer, "NATFW/Stun Server:"); |
|
33 |
|
34 #define __STUNSERVER(a) \ |
|
35 { _LIT( KStr, a); TNATFWLog::Print( KNATFWStunServer, KStr ); } |
|
36 #define __STUNSERVER_INT1(a, b) \ |
|
37 { _LIT( KStr, a); TNATFWLog::Print( KNATFWStunServer, KStr, b); } |
|
38 #define __STUNSERVER_INT2(a, b, c, d) \ |
|
39 { _LIT( KStr1, a); _LIT( KStr2, c); TNATFWLog::Print\ |
|
40 ( KNATFWStunServer, KStr1, b, KStr2, d); } |
|
41 #define __STUNSERVER_STR(a, b) \ |
|
42 { _LIT( KStr, a); TNATFWLog::Print( KNATFWStunServer, KStr, b); } |
|
43 #define __STUNSERVER_STR8(a, b) \ |
|
44 { _LIT( KStr, a); TNATFWLog::Print( KNATFWStunServer, KStr, b); } |
|
45 #define __STUNSERVER_ADDRLOG( a, b ) \ |
|
46 { _LIT( KStr, a); TNATFWLog::Print( KNATFWStunServer, KStr, b ); } |
|
47 #else |
|
48 #define __STUNSERVER(a) |
|
49 #define __STUNSERVER_INT1(a, b) |
|
50 #define __STUNSERVER_INT2(a, b, c, d) |
|
51 #define __STUNSERVER_STR(a, b) |
|
52 #define __STUNSERVER_STR8(a, b) |
|
53 #define __STUNSERVER_ADDRLOG( a, b ) |
|
54 #endif |
|
55 |
|
56 |
|
57 #endif // NATFWSTUNSERVERLOGS_H |