radioengine/utils/src/radioengineutils.cpp
branchRCL_3
changeset 19 cce62ebc198e
equal deleted inserted replaced
18:1a6714c53019 19:cce62ebc198e
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 // System includes
       
    19 #include <StringLoader.h>
       
    20 
       
    21 // User includes
       
    22 #include "radioengineutils.h"
       
    23 #include "cradioenginetls.h"
       
    24 
       
    25 // ---------------------------------------------------------------------------
       
    26 //
       
    27 // ---------------------------------------------------------------------------
       
    28 //
       
    29 EXPORT_C void RadioEngineUtils::InitializeL()
       
    30     {
       
    31     CRadioEngineTls::InitializeL();
       
    32     CRadioEngineTls::Instance().AddRef();
       
    33     }
       
    34 
       
    35 // ---------------------------------------------------------------------------
       
    36 //
       
    37 // ---------------------------------------------------------------------------
       
    38 //
       
    39 EXPORT_C void RadioEngineUtils::Release()
       
    40     {
       
    41     CRadioEngineTls::Instance().Release();
       
    42     }
       
    43 
       
    44 // ---------------------------------------------------------------------------
       
    45 //
       
    46 // ---------------------------------------------------------------------------
       
    47 //
       
    48 EXPORT_C MRadioEngineLogger* RadioEngineUtils::Logger()
       
    49     {
       
    50     return CRadioEngineTls::Instance().Logger();
       
    51     }
       
    52 
       
    53 // ---------------------------------------------------------------------------
       
    54 // Returns the file server session
       
    55 // ---------------------------------------------------------------------------
       
    56 //
       
    57 EXPORT_C RFs& RadioEngineUtils::FsSession()
       
    58     {
       
    59     return CRadioEngineTls::Instance().FsSession();
       
    60     }