connectionmonitoring/connmon/connectionmonitor/src/ConnMonExe.cpp
changeset 0 5a93021fdf25
equal deleted inserted replaced
-1:000000000000 0:5a93021fdf25
       
     1 /*
       
     2 * Copyright (c) 2002-2006 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:  Implementation for ConnMon.exe (launches ConnMon server).
       
    15 *
       
    16 */
       
    17 
       
    18 #include "ConnMonServ.h"
       
    19 
       
    20 TInt SetSignal( CConnMonScheduler::TSignal& aSignal );
       
    21 
       
    22 // -----------------------------------------------------------------------------
       
    23 // E32Main()
       
    24 // Starting point (MARM).
       
    25 // -----------------------------------------------------------------------------
       
    26 //
       
    27 GLDEF_C TInt E32Main()
       
    28     {
       
    29     CConnMonScheduler::TSignal signal;
       
    30     TInt err = SetSignal( signal );
       
    31     if ( !err )
       
    32         {
       
    33         err = CConnMonScheduler::ThreadStart( signal );
       
    34         }
       
    35     return err;
       
    36     }
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // SetSignal()
       
    40 // This simple function uses a lot of stack space,
       
    41 // that isn't needed throughout the lifetime of the server.
       
    42 // That's why it's separate from E32Main()
       
    43 // Don't be tempted to amalgamate it back again.
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 TInt SetSignal( CConnMonScheduler::TSignal& aSignal )
       
    47     {
       
    48     TBuf< 0x100 > cmd;
       
    49     User::CommandLine( cmd );
       
    50     return aSignal.Set( cmd );
       
    51     }
       
    52 
       
    53 // End-of-file