os/kernelhwsrv/kerneltest/e32test/debug/d_kern_msg.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #if !defined(__D_KERN_MSG_H__)
    17 #define __D_KERN_MSG_H__
    18 #include <e32cmn.h>
    19 #ifndef __KERNEL_MODE__
    20 #include <e32std.h>
    21 #endif
    22 
    23 _LIT(KLddName,"D_KERN_MSG");
    24 
    25 /*
    26  * @InternalTechnology
    27  */
    28 
    29 class TCapsTraceTestV01
    30 	{
    31 public:
    32 	TVersion	iVersion;
    33 	};
    34 
    35 class RKernMsgTest : public RBusLogicalChannel
    36 	{
    37 public:
    38 	enum TControl
    39 		{
    40    	    EControlKDebug,
    41 		EControlIsrContextTest
    42 		};
    43 
    44 public:
    45 #ifndef __KERNEL_MODE__
    46 	inline TInt Open()
    47 		{ return DoCreate(KLddName(),TVersion(0,1,1),KNullUnit,NULL,NULL); }
    48 	// return current Thread ID or error code
    49 	inline TInt KDebugMsg(const TDesC8& aMsg)
    50 		{ return DoControl(EControlKDebug, (TAny*)&aMsg); }
    51 
    52 	// return KErrNone
    53 	inline TInt IsrContextTest(TInt aMsgNum)
    54 		{ return DoControl(EControlIsrContextTest, (TAny*)aMsgNum); }
    55 
    56 #endif
    57 	};
    58 
    59 #endif