diff -r 000000000000 -r a03f92240627 memspy/Driver/Kernel/Include/SubChannels/MemSpyDriverLogChanHeapInfo.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/memspy/Driver/Kernel/Include/SubChannels/MemSpyDriverLogChanHeapInfo.h Tue Feb 02 01:57:15 2010 +0200 @@ -0,0 +1,66 @@ +/* +* Copyright (c) 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: +* +*/ + +#ifndef MEMSPYDRIVERLOGICALCHANHEAPINFO_H +#define MEMSPYDRIVERLOGICALCHANHEAPINFO_H + +// System includes +#include +#include +#ifdef __MARM__ +#include +#endif +#include +#include + +// User includes +#include "MemSpyDriverOpCodes.h" +#include "MemSpyDriverLogChanHeapBase.h" +#include "MemSpyDriverObjectsInternal.h" +#include "MemSpyDriverHeapWalker.h" +#include "MemSpyDriverEnumerationsInternal.h" + +// Classes referenced +class DMemSpyDriverDevice; +class RMemSpyDriverRHeapKernel; +class RMemSpyMemStreamWriter; + + +class DMemSpyDriverLogChanHeapInfo : public DMemSpyDriverLogChanHeapBase + { +public: + DMemSpyDriverLogChanHeapInfo( DMemSpyDriverDevice& aDevice, DThread& aThread ); + ~DMemSpyDriverLogChanHeapInfo(); + +private: // from DMemSpyDriverLogChanBase + TInt Request( TInt aFunction, TAny* a1, TAny* a2 ); + TBool IsHandler( TInt aFunction ) const; + +private: // Channel operation handlers + TInt GetHeapInfoUser( TMemSpyDriverInternalHeapRequestParameters* aParams ); + TInt GetHeapInfoKernel( TMemSpyDriverInternalHeapRequestParameters* aParams, TDes8* aTransferBuffer ); + TInt GetIsDebugKernel( TBool* aIsDebugKernel ); + +private: // Internal methods + TUint32 CalculateFreeCellBufferSize() const; + +private: // Data members + TMemSpyDriverInternalHeapRequestParameters iHeapInfoParams; + }; + + +#endif