os/mm/devsound/a3ftrace/inc/a3f_trace_ctxt_def.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/devsound/a3ftrace/inc/a3f_trace_ctxt_def.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,93 @@
     1.4 +/*
     1.5 +* Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +/**
    1.23 +* @file
    1.24 +* @internalTechnology 
    1.25 +*/
    1.26 +
    1.27 +#ifndef _A3F_TRACE_CTXT_DEF_H_
    1.28 +#define _A3F_TRACE_CTXT_DEF_H_
    1.29 +
    1.30 +// MACROS
    1.31 +//#define DISABLE_SYNTAX_CHECK
    1.32 +#define DISABLE_GROUP_CHECKS
    1.33 +
    1.34 +struct TTraceName
    1.35 +    {
    1.36 +    const TUint32 iId;
    1.37 +    const TUint32 iGrpId;
    1.38 +#ifdef __WINS__
    1.39 +    const TText16* const iName;
    1.40 +#else
    1.41 +    const wchar_t* const iName;
    1.42 +#endif
    1.43 +    };
    1.44 +    
    1.45 +static const TTraceName TRACENFO[] = 
    1.46 +    {
    1.47 +        { CtxTest,           0x00000001, L"Test" },
    1.48 +        { CtxDevSound,       0x00000002, L"DevSound" },
    1.49 +        { CtxDsProxy,        0x00000004, L"DevSound proxy" },
    1.50 +        { CtxDsStarter,      0x00000008, L"DevSound starter" },
    1.51 +        { CtxDsServer,       0x00000010, L"DevSound server" },
    1.52 +        { CtxDsdaptation,    0x00000020, L"DevSound adaptation" },
    1.53 +        { CtxHwDevice,       0x00000040, L"HW device" },
    1.54 +        { CtxPolicyProxy,    0x00000080, L"Policy proxy" },
    1.55 +        { CtxPolicyServer,   0x00000100, L"Policy server" },
    1.56 +        { CtxPolicyCtrl,     0x00000200, L"Policy control" },
    1.57 +        { CtxMmRm,           0x00000400, L"Mm resource manager" },
    1.58 +        { CtxAudioServer,    0x00000800, L"Audio server" },
    1.59 +        { CtxAsProxy,        0x00001000, L"Audio server proxy" },
    1.60 +        { CtxAsServer,       0x00002000, L"Audio server server" },
    1.61 +        { CtxAsCtrl,         0x00004000, L"Audio server control" },
    1.62 +        { CtxAsEap,          0x00008000, L"Audio server EAP" },
    1.63 +        { CtxMdaif,          0x00010000, L"MDAIF" },
    1.64 +        { CtxAaMm,           0x00020000, L"Message mapper" },
    1.65 +        { CtxRadio,          0x00040000, L"Radio" }
    1.66 +    };
    1.67 +
    1.68 +#define CtxDefaultGroups _CtxDefaultGroups()
    1.69 +
    1.70 +
    1.71 +inline TInt _CtxDefaultGroups()
    1.72 +	{
    1.73 +        return TRACENFO[CtxTest].iGrpId         | 
    1.74 +               TRACENFO[CtxDevSound].iGrpId     | 
    1.75 +               TRACENFO[CtxDsProxy].iGrpId      | 
    1.76 +               TRACENFO[CtxDsStarter].iGrpId    | 
    1.77 +               TRACENFO[CtxDsServer].iGrpId     | 
    1.78 +               TRACENFO[CtxDsdaptation].iGrpId  | 
    1.79 +               TRACENFO[CtxHwDevice].iGrpId     | 
    1.80 +               TRACENFO[CtxPolicyProxy].iGrpId  | 
    1.81 +               TRACENFO[CtxPolicyServer].iGrpId | 
    1.82 +               TRACENFO[CtxPolicyCtrl].iGrpId   | 
    1.83 +               TRACENFO[CtxMmRm].iGrpId         | 
    1.84 +               TRACENFO[CtxAudioServer].iGrpId  | 
    1.85 +               TRACENFO[CtxAsProxy].iGrpId      | 
    1.86 +               TRACENFO[CtxAsServer].iGrpId     | 
    1.87 +               TRACENFO[CtxAsCtrl].iGrpId       | 
    1.88 +               TRACENFO[CtxAsEap].iGrpId        | 
    1.89 +               TRACENFO[CtxMdaif].iGrpId        | 
    1.90 +               TRACENFO[CtxAaMm].iGrpId         | 
    1.91 +               TRACENFO[CtxRadio].iGrpId;
    1.92 +	}
    1.93 +
    1.94 +#endif  // _A3F_TRACE_CTXT_DEF_H_
    1.95 +            
    1.96 +// End of File