cryptomgmtlibs/securitycommonutils/test/source/scstestserver/startup.cpp
changeset 8 35751d3474b7
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
       
     1 /*
       
     2 * Copyright (c) 2007-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 * Executable entrypoint and server object factory function.
       
    16 * The latter is supplied to the SCS boilerplate code.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 /**
       
    22  @file
       
    23 */
       
    24 
       
    25 #include "scstestserver.h"
       
    26 
       
    27 
       
    28 static CScsServer* NewScsTestServerLC()
       
    29 /**
       
    30 	This factory function is called by SCS.  It allocates
       
    31 	the server object and leaves it on the cleanup stack.
       
    32 
       
    33 	@return					New initialized instance of CScsTestServer.
       
    34 							On return this is on the cleanup stack.
       
    35  */
       
    36 	{
       
    37 	return CScsTestServer::NewLC();
       
    38 	}
       
    39 
       
    40 TInt E32Main()
       
    41 /**
       
    42 	Executable entrypoint.
       
    43 
       
    44 	@return					Symbian OS error code where KErrNone indicates
       
    45 							success and any other value indicates failure.
       
    46  */
       
    47 	{
       
    48 	return StartScsServer(NewScsTestServerLC);
       
    49 	}
       
    50