sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #include "uloggersysstarter.h" sl@0: sl@0: namespace Ulogger sl@0: { sl@0: sl@0: //********************************** sl@0: // CULoggerSysStarter sl@0: //********************************** sl@0: sl@0: TInt SysStart() sl@0: { sl@0: RULogger client; sl@0: TInt err = KErrNone; sl@0: err = client.Connect(); sl@0: if(err == KErrNone) sl@0: err = client.Start(); sl@0: sl@0: client.Close(); sl@0: sl@0: // The System Starter is waiting for us (start_method = EWaitForStart) sl@0: // so we rendez-vous so it can start the next process in the SSC sl@0: RProcess::Rendezvous(KErrNone); sl@0: return KErrNone; sl@0: } sl@0: sl@0: }//namespace sl@0: sl@0: sl@0: #ifndef __ULOGGER_SYSTEMSTART_UNIT_TEST sl@0: GLDEF_C TInt E32Main() sl@0: { sl@0: Ulogger::SysStart(); sl@0: return(KErrNone); sl@0: } sl@0: sl@0: #endif