epoc32/include/a3f/a3f_trace_ctxt.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@2
     5
* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
williamr@2
     6
* which accompanies this distribution, and is available
williamr@2
     7
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description:
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
williamr@2
    19
williamr@2
    20
williamr@2
    21
/**
williamr@2
    22
 @file
williamr@2
    23
 @internalTechnology 
williamr@2
    24
*/
williamr@2
    25
williamr@2
    26
#ifndef _A3F_TRACE_CTXT_H_
williamr@2
    27
#define _A3F_TRACE_CTXT_H_
williamr@2
    28
williamr@2
    29
// MACROS
williamr@2
    30
//#define DISABLE_SYNTAX_CHECK
williamr@2
    31
#define DISABLE_GROUP_CHECKS
williamr@2
    32
williamr@2
    33
struct TTraceName
williamr@2
    34
    {
williamr@2
    35
    const TUint32 iId;
williamr@2
    36
    const TUint32 iGrpId;
williamr@2
    37
#ifdef __WINS__
williamr@2
    38
    const TText16* const iName;
williamr@2
    39
#else
williamr@2
    40
    const wchar_t* const iName;
williamr@2
    41
#endif
williamr@2
    42
    };
williamr@2
    43
    
williamr@2
    44
/**
williamr@2
    45
@publishedAll
williamr@2
    46
@released
williamr@2
    47
williamr@2
    48
This is TTraceCtxGroup
williamr@2
    49
williamr@2
    50
*/
williamr@2
    51
williamr@2
    52
enum TTraceCtxGroup {
williamr@2
    53
        CtxTest,
williamr@2
    54
        CtxDevSound,
williamr@2
    55
        CtxDsProxy,
williamr@2
    56
        CtxDsStarter,
williamr@2
    57
        CtxDsServer,
williamr@2
    58
        CtxDsdaptation,
williamr@2
    59
        CtxHwDevice,
williamr@2
    60
        CtxPolicyProxy,
williamr@2
    61
        CtxPolicyServer,
williamr@2
    62
        CtxPolicyCtrl,
williamr@2
    63
        CtxMmRm,
williamr@2
    64
        CtxAudioServer,
williamr@2
    65
        CtxAsProxy,
williamr@2
    66
        CtxAsServer,
williamr@2
    67
        CtxAsCtrl,
williamr@2
    68
        CtxAsEap,
williamr@2
    69
        CtxMdaif,
williamr@2
    70
        CtxAaMm,
williamr@2
    71
        CtxRadio
williamr@2
    72
};
williamr@2
    73
williamr@2
    74
static const TTraceName TRACENFO[] = 
williamr@2
    75
    {
williamr@2
    76
        { CtxTest,           0x00000001, L"Test" },
williamr@2
    77
        { CtxDevSound,       0x00000002, L"DevSound" },
williamr@2
    78
        { CtxDsProxy,        0x00000004, L"DevSound proxy" },
williamr@2
    79
        { CtxDsStarter,      0x00000008, L"DevSound starter" },
williamr@2
    80
        { CtxDsServer,       0x00000010, L"DevSound server" },
williamr@2
    81
        { CtxDsdaptation,    0x00000020, L"DevSound adaptation" },
williamr@2
    82
        { CtxHwDevice,       0x00000040, L"HW device" },
williamr@2
    83
        { CtxPolicyProxy,    0x00000080, L"Policy proxy" },
williamr@2
    84
        { CtxPolicyServer,   0x00000100, L"Policy server" },
williamr@2
    85
        { CtxPolicyCtrl,     0x00000200, L"Policy control" },
williamr@2
    86
        { CtxMmRm,           0x00000400, L"Mm resource manager" },
williamr@2
    87
        { CtxAudioServer,    0x00000800, L"Audio server" },
williamr@2
    88
        { CtxAsProxy,        0x00001000, L"Audio server proxy" },
williamr@2
    89
        { CtxAsServer,       0x00002000, L"Audio server server" },
williamr@2
    90
        { CtxAsCtrl,         0x00004000, L"Audio server control" },
williamr@2
    91
        { CtxAsEap,          0x00008000, L"Audio server EAP" },
williamr@2
    92
        { CtxMdaif,          0x00010000, L"MDAIF" },
williamr@2
    93
        { CtxAaMm,           0x00020000, L"Message mapper" },
williamr@2
    94
        { CtxRadio,          0x00040000, L"Radio" }
williamr@2
    95
    };
williamr@2
    96
williamr@2
    97
#define CtxDefaultGroups _CtxDefaultGroups()
williamr@2
    98
williamr@2
    99
williamr@2
   100
inline TInt _CtxDefaultGroups()
williamr@2
   101
	{
williamr@2
   102
        return TRACENFO[CtxTest].iGrpId         | 
williamr@2
   103
               TRACENFO[CtxDevSound].iGrpId     | 
williamr@2
   104
               TRACENFO[CtxDsProxy].iGrpId      | 
williamr@2
   105
               TRACENFO[CtxDsStarter].iGrpId    | 
williamr@2
   106
               TRACENFO[CtxDsServer].iGrpId     | 
williamr@2
   107
               TRACENFO[CtxDsdaptation].iGrpId  | 
williamr@2
   108
               TRACENFO[CtxHwDevice].iGrpId     | 
williamr@2
   109
               TRACENFO[CtxPolicyProxy].iGrpId  | 
williamr@2
   110
               TRACENFO[CtxPolicyServer].iGrpId | 
williamr@2
   111
               TRACENFO[CtxPolicyCtrl].iGrpId   | 
williamr@2
   112
               TRACENFO[CtxMmRm].iGrpId         | 
williamr@2
   113
               TRACENFO[CtxAudioServer].iGrpId  | 
williamr@2
   114
               TRACENFO[CtxAsProxy].iGrpId      | 
williamr@2
   115
               TRACENFO[CtxAsServer].iGrpId     | 
williamr@2
   116
               TRACENFO[CtxAsCtrl].iGrpId       | 
williamr@2
   117
               TRACENFO[CtxAsEap].iGrpId        | 
williamr@2
   118
               TRACENFO[CtxMdaif].iGrpId        | 
williamr@2
   119
               TRACENFO[CtxAaMm].iGrpId         | 
williamr@2
   120
               TRACENFO[CtxRadio].iGrpId;
williamr@2
   121
	}
williamr@2
   122
williamr@2
   123
#endif  // _A3F_TRACE_CTXT_H_
williamr@2
   124
            
williamr@2
   125
// End of File