os/kernelhwsrv/kernel/eka/drivers/debug/smdebug/d_buffer_manager.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 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 // Kernel-side managing of stop-mode buffers
    15 //
    16 
    17 #ifndef D_BUFFER_MANAGER_H
    18 #define D_BUFFER_MANAGER_H
    19 
    20 #include <sm_debug_api.h>
    21 
    22 // The global class which creates and deletes buffers used by the stop-mode API
    23 
    24 class DBufferManager : public DBase
    25 	{
    26 	public:
    27 		DBufferManager();
    28 		~DBufferManager();
    29 
    30 		TInt CreateBuffer(Debug::TTag& aBufferDetails);
    31 		TInt GetBufferDetails(const Debug::TBufferType aBufferType, Debug::TTag& aTag) const;
    32 
    33 	private:
    34 		RArray<Debug::TTag> iBuffers;
    35 	};
    36 
    37 // static global object
    38 extern DBufferManager TheDBufferManager;
    39 
    40 #endif // D_BUFFER_MANAGER_H