equal
deleted
inserted
replaced
|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include "uloggersysstarter.h" |
|
17 |
|
18 namespace Ulogger |
|
19 { |
|
20 |
|
21 //********************************** |
|
22 // CULoggerSysStarter |
|
23 //********************************** |
|
24 |
|
25 TInt SysStart() |
|
26 { |
|
27 RULogger client; |
|
28 TInt err = KErrNone; |
|
29 err = client.Connect(); |
|
30 if(err == KErrNone) |
|
31 err = client.Start(); |
|
32 |
|
33 client.Close(); |
|
34 |
|
35 // The System Starter is waiting for us (start_method = EWaitForStart) |
|
36 // so we rendez-vous so it can start the next process in the SSC |
|
37 RProcess::Rendezvous(KErrNone); |
|
38 return KErrNone; |
|
39 } |
|
40 |
|
41 }//namespace |
|
42 |
|
43 |
|
44 #ifndef __ULOGGER_SYSTEMSTART_UNIT_TEST |
|
45 GLDEF_C TInt E32Main() |
|
46 { |
|
47 Ulogger::SysStart(); |
|
48 return(KErrNone); |
|
49 } |
|
50 |
|
51 #endif |