commsfwsupport/commselements/rootserver/rootsrv/procrootdbg.cpp
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2006-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 "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 /**
       
    17  @file 
       
    18  @internalTechnology
       
    19  @released
       
    20 */
       
    21 
       
    22 #include <procroot.h>
       
    23 
       
    24 using namespace RootServer; // Allowing the usage of definitions from the RS
       
    25 using namespace CommsFW; // Allowing the usage of definitions from the Comms Framework
       
    26 
       
    27 #if defined (_DEBUG_ROOTSERVER_FUNCTIONS)
       
    28 EXPORT_C TInt RProcessRootDbg::__DbgMarkHeap()
       
    29 	/** Sets a heap mark in the root server
       
    30 	@internalComponent 
       
    31     */
       
    32 	{
       
    33 	return iProcessRoot.SendReceive(RSDbgMarkHeap,TIpcArgs());
       
    34 	}
       
    35 
       
    36 EXPORT_C TInt RProcessRootDbg::__DbgCheckHeap(TInt aCount)
       
    37 	/** Sets a heap mark in the root server
       
    38 	@internalComponent 
       
    39     */
       
    40 	{
       
    41 	return iProcessRoot.SendReceive(RSDbgCheckHeap,TIpcArgs(aCount));//check if it's right 
       
    42 	}
       
    43 
       
    44 EXPORT_C TInt RProcessRootDbg::__DbgMarkEnd(TInt aCount)
       
    45 	/** Sets a heap mark in the root server
       
    46 	@internalComponent 
       
    47     */
       
    48 	{
       
    49 	return iProcessRoot.SendReceive(RSDbgMarkEnd,TIpcArgs(aCount));//check if it's right 
       
    50 	}
       
    51 EXPORT_C TInt RProcessRootDbg::__DbgFailNext(TInt aCount)
       
    52 	/** Sets a heap mark in the root server
       
    53 	@internalComponent 
       
    54     */
       
    55 	{
       
    56 	return iProcessRoot.SendReceive(RSDbgFailNext,TIpcArgs(aCount));//check if it's right 
       
    57 	}
       
    58 
       
    59 #else
       
    60 EXPORT_C TInt RProcessRootDbg::__DbgMarkHeap()
       
    61 	/** Sets a heap mark in the root server
       
    62 	@internalComponent 
       
    63     */
       
    64 	{
       
    65 	return KErrNone;
       
    66 	}
       
    67 
       
    68 EXPORT_C TInt RProcessRootDbg::__DbgCheckHeap(TInt /*aCount*/)
       
    69 	/** Sets a heap mark in the root server
       
    70 	@internalComponent 
       
    71     */
       
    72 	{
       
    73    return KErrNone;
       
    74 	}
       
    75 
       
    76 EXPORT_C TInt RProcessRootDbg::__DbgMarkEnd(TInt /*aCount*/)
       
    77 	/** Sets a heap mark in the root server
       
    78 	@internalComponent 
       
    79     */
       
    80 	{
       
    81    return KErrNone;
       
    82 	}
       
    83 EXPORT_C TInt RProcessRootDbg::__DbgFailNext(TInt /*aCount*/)
       
    84 	/** Sets a heap mark in the root server
       
    85 	@internalComponent 
       
    86     */
       
    87 	{
       
    88    return KErrNone;
       
    89 	}
       
    90 
       
    91 #endif // _DEBUG
       
    92 
       
    93