diff -r 5e441a173c63 -r d9f1e5bfe28c kerneltest/e32test/misc/d_testkerncorestats.h --- a/kerneltest/e32test/misc/d_testkerncorestats.h Mon May 24 18:45:46 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +0,0 @@ -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// e32test\misc\d_kerncorestas.h -// - - -#ifndef D_TESTKERNCORESTATS -#define D_TESTKERNCORESTATS - - -#include -#include -#ifndef __KERNEL_MODE__ -#include -#endif - - - -_LIT(KTestKernCoreStatsName,"TestKernCoreStats"); - - - -class RTestKernCoreStats : public RBusLogicalChannel - { -public: - - enum TControl - { - - ERequestGetStats, - ERequestConfigure, - ERequestDumpInfo - }; -public: - inline TInt Open(); - inline TInt GetStats( TAny* a0); - inline TInt Configure( TInt a0); - inline TInt DumpInfo(); - - }; - -#ifndef __KERNEL_MODE__ - -inline TInt RTestKernCoreStats::Open() - { return DoCreate(KTestKernCoreStatsName,TVersion(0,1,1),KNullUnit,NULL,NULL); } - - -inline TInt RTestKernCoreStats::GetStats( TAny* a0) - { return DoControl(ERequestGetStats, (TAny*) a0); } - -inline TInt RTestKernCoreStats::Configure( TInt a0) - { return DoControl(ERequestConfigure, (TAny*) a0); } - -inline TInt RTestKernCoreStats::DumpInfo() - { return DoControl(ERequestDumpInfo,NULL); } - - - - -#else - -#define DRIVER_NAME(x) -#define DRIVER_REQUEST TInt - -#endif // __KERNEL_MODE__ - -#endif -