connectivitylayer/usbphonetlink/usbpnserver_exe/src/usbpnexe.cpp
changeset 0 63b37f68c1ce
child 5 8ccc39f9d787
equal deleted inserted replaced
-1:000000000000 0:63b37f68c1ce
       
     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 the License "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 // INCLUDE FILES
       
    19 #include    "cusbpnscheduler.h"
       
    20 #include    "usbpntrace.h"
       
    21 
       
    22 #include    "osttracedefinitions.h"
       
    23 #ifdef OST_TRACE_COMPILER_IN_USE
       
    24 #include    "usbpnexeTraces.h"
       
    25 #endif
       
    26 
       
    27 #include    <e32std.h>          // For User
       
    28 
       
    29 // EXTERNAL DATA STRUCTURES
       
    30 // EXTERNAL FUNCTION PROTOTYPES
       
    31 // CONSTANTS
       
    32 // MACROS
       
    33 // LOCAL CONSTANTS AND MACROS
       
    34 _LIT( KUsbPnServerThreadName, "USB Phonet Link" );
       
    35 #ifdef _DEBUG
       
    36 _LIT(KTraceName, "USBPNLINK");
       
    37 #endif
       
    38 
       
    39 // MODULE DATA STRUCTURES
       
    40 // LOCAL FUNCTION PROTOTYPES
       
    41 // FORWARD DECLARATIONS
       
    42 
       
    43 // ============================= LOCAL FUNCTIONS ===============================
       
    44 // ============================ MEMBER FUNCTIONS ===============================
       
    45 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 // ?function_name implements...
       
    49 // ?implementation_description.
       
    50 // Returns: ?value_1: ?description
       
    51 //          ?value_n: ?description
       
    52 //                    ?description
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 GLDEF_C TInt E32Main()
       
    56     {
       
    57     TInt err( KErrNone );
       
    58 
       
    59     // Rename server thread name
       
    60     err = User::RenameThread( KUsbPnServerThreadName );
       
    61 
       
    62     if( err )
       
    63         {
       
    64         TRACE_ASSERT_ALWAYS;
       
    65         }
       
    66 
       
    67     OstTrace0( TRACE_API, _E32MAIN_ENTRY, "USBPhonetLink - UsbPnExe::E32Main" );
       
    68     A_TRACE( _L( "USBPhonetLink - UsbPnExe::E32Main()" ) );
       
    69     BUILD_TRACE( &KTraceName );
       
    70 
       
    71     err = CUsbPnScheduler::ThreadStart();
       
    72 
       
    73     if( err )
       
    74         {
       
    75         TRACE_ASSERT_ALWAYS;
       
    76         }
       
    77 
       
    78     OstTrace1( TRACE_API, _E32MAIN_EXIT, "USBPhonetLink - UsbPnExe::E32Main - return %d", err );
       
    79     A_TRACE( ( _T( "USBPhonetLink - UsbPnExe::E32Main() return %d" ), err ) );
       
    80     return err;
       
    81     }
       
    82 
       
    83 //  End of File