|
1 /* |
|
2 * Copyright (c) 2002-2007 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 /** |
|
20 * @file |
|
21 * @internalTechnology |
|
22 */ |
|
23 |
|
24 #ifndef _A3F_TRACE_CTXT_DEF_H_ |
|
25 #define _A3F_TRACE_CTXT_DEF_H_ |
|
26 |
|
27 // MACROS |
|
28 //#define DISABLE_SYNTAX_CHECK |
|
29 #define DISABLE_GROUP_CHECKS |
|
30 |
|
31 struct TTraceName |
|
32 { |
|
33 const TUint32 iId; |
|
34 const TUint32 iGrpId; |
|
35 #ifdef __WINS__ |
|
36 const TText16* const iName; |
|
37 #else |
|
38 const wchar_t* const iName; |
|
39 #endif |
|
40 }; |
|
41 |
|
42 static const TTraceName TRACENFO[] = |
|
43 { |
|
44 { CtxTest, 0x00000001, L"Test" }, |
|
45 { CtxDevSound, 0x00000002, L"DevSound" }, |
|
46 { CtxDsProxy, 0x00000004, L"DevSound proxy" }, |
|
47 { CtxDsStarter, 0x00000008, L"DevSound starter" }, |
|
48 { CtxDsServer, 0x00000010, L"DevSound server" }, |
|
49 { CtxDsdaptation, 0x00000020, L"DevSound adaptation" }, |
|
50 { CtxHwDevice, 0x00000040, L"HW device" }, |
|
51 { CtxPolicyProxy, 0x00000080, L"Policy proxy" }, |
|
52 { CtxPolicyServer, 0x00000100, L"Policy server" }, |
|
53 { CtxPolicyCtrl, 0x00000200, L"Policy control" }, |
|
54 { CtxMmRm, 0x00000400, L"Mm resource manager" }, |
|
55 { CtxAudioServer, 0x00000800, L"Audio server" }, |
|
56 { CtxAsProxy, 0x00001000, L"Audio server proxy" }, |
|
57 { CtxAsServer, 0x00002000, L"Audio server server" }, |
|
58 { CtxAsCtrl, 0x00004000, L"Audio server control" }, |
|
59 { CtxAsEap, 0x00008000, L"Audio server EAP" }, |
|
60 { CtxMdaif, 0x00010000, L"MDAIF" }, |
|
61 { CtxAaMm, 0x00020000, L"Message mapper" }, |
|
62 { CtxRadio, 0x00040000, L"Radio" } |
|
63 }; |
|
64 |
|
65 #define CtxDefaultGroups _CtxDefaultGroups() |
|
66 |
|
67 |
|
68 inline TInt _CtxDefaultGroups() |
|
69 { |
|
70 return TRACENFO[CtxTest].iGrpId | |
|
71 TRACENFO[CtxDevSound].iGrpId | |
|
72 TRACENFO[CtxDsProxy].iGrpId | |
|
73 TRACENFO[CtxDsStarter].iGrpId | |
|
74 TRACENFO[CtxDsServer].iGrpId | |
|
75 TRACENFO[CtxDsdaptation].iGrpId | |
|
76 TRACENFO[CtxHwDevice].iGrpId | |
|
77 TRACENFO[CtxPolicyProxy].iGrpId | |
|
78 TRACENFO[CtxPolicyServer].iGrpId | |
|
79 TRACENFO[CtxPolicyCtrl].iGrpId | |
|
80 TRACENFO[CtxMmRm].iGrpId | |
|
81 TRACENFO[CtxAudioServer].iGrpId | |
|
82 TRACENFO[CtxAsProxy].iGrpId | |
|
83 TRACENFO[CtxAsServer].iGrpId | |
|
84 TRACENFO[CtxAsCtrl].iGrpId | |
|
85 TRACENFO[CtxAsEap].iGrpId | |
|
86 TRACENFO[CtxMdaif].iGrpId | |
|
87 TRACENFO[CtxAaMm].iGrpId | |
|
88 TRACENFO[CtxRadio].iGrpId; |
|
89 } |
|
90 |
|
91 #endif // _A3F_TRACE_CTXT_DEF_H_ |
|
92 |
|
93 // End of File |