tracesrv/tracecore/btrace_handler/inc/TraceCore.inl
changeset 56 aa2539c91954
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
       
     1 // Copyright (c) 2007-2010 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 // Trace Core
       
    15 //
       
    16 
       
    17 #ifndef __TRACECORE_INL__
       
    18 #define __TRACECORE_INL__
       
    19 
       
    20 
       
    21 /**
       
    22  * Gets the trace core router
       
    23  */
       
    24 inline DTraceCoreRouter& DTraceCore::GetRouter()
       
    25     {
       
    26     __ASSERT_DEBUG( iRouter,
       
    27         Kern::Fault( "DTraceCore::GetRouter(): iRouter NULL", KErrGeneral ) );
       
    28     return *iRouter;
       
    29     }
       
    30 
       
    31 /**
       
    32  * Gets the trace core send-receive interface
       
    33  */
       
    34 inline DTraceCoreSendReceive& DTraceCore::GetSendReceive()
       
    35     {
       
    36     __ASSERT_DEBUG( iSendReceive,
       
    37         Kern::Fault( "DTraceCore::GetSendReceive(): iSendReceive NULL", KErrGeneral ) );
       
    38     return *iSendReceive;
       
    39     }
       
    40     
       
    41 /**
       
    42  * Gets the trace core notifier
       
    43  */
       
    44 inline DTraceCoreNotifier& DTraceCore::GetNotifier()
       
    45     {
       
    46     __ASSERT_DEBUG( iNotifier,
       
    47         Kern::Fault( "DTraceCore::GetNotifier(): iNotifier NULL", KErrGeneral ) );
       
    48     return *iNotifier;
       
    49     }
       
    50 
       
    51 #endif
       
    52 
       
    53 // End of File