equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
21 */ |
21 */ |
22 |
22 |
23 #include <e32base.h> |
23 #include <e32base.h> |
24 #include "fdfserver.h" |
24 #include "fdfserver.h" |
25 #include <usb/usblogger.h> |
25 #include <usb/usblogger.h> |
|
26 #include "OstTraceDefinitions.h" |
|
27 #ifdef OST_TRACE_COMPILER_IN_USE |
|
28 #include "mainTraces.h" |
|
29 #endif |
|
30 |
26 |
31 |
27 static void RunFdfL(); |
32 static void RunFdfL(); |
28 |
33 |
29 #ifdef __FLOG_ACTIVE |
|
30 _LIT8(KLogComponent, "fdf "); |
|
31 #endif |
|
32 |
34 |
33 GLDEF_C TInt E32Main() |
35 GLDEF_C TInt E32Main() |
34 { |
36 { |
35 LOGTEXT(_L8(">>E32Main")); |
37 OstTrace0( TRACE_NORMAL, FDF_SERVER_SRC_E32MAIN, ">>E32Main" ); |
36 |
38 |
37 TInt ret = KErrNoMemory; |
39 TInt ret = KErrNoMemory; |
38 |
40 |
39 __UHEAP_MARK; |
41 __UHEAP_MARK; |
40 |
42 |
41 CTrapCleanup* cleanup = CTrapCleanup::New(); |
43 CTrapCleanup* cleanup = CTrapCleanup::New(); |
42 |
44 |
43 if ( cleanup ) |
45 if ( cleanup ) |
44 { |
46 { |
45 // Create the logger object |
47 // Create the logger object |
46 #ifdef __FLOG_ACTIVE |
|
47 (void)CUsbLog::Connect(); |
|
48 #endif |
|
49 |
48 |
50 TRAP(ret, RunFdfL()); |
49 TRAP(ret, RunFdfL()); |
51 |
50 |
52 #ifdef __FLOG_ACTIVE |
|
53 CUsbLog::Close(); |
|
54 #endif |
|
55 |
51 |
56 delete cleanup; |
52 delete cleanup; |
57 } |
53 } |
58 |
54 |
59 __UHEAP_MARKEND; |
55 __UHEAP_MARKEND; |
60 |
56 |
61 LOGTEXT2(_L8("<<E32Main ret = %d"), ret); |
57 OstTrace1( TRACE_NORMAL, FDF_SERVER_SRC_E32MAIN_DUP1, |
|
58 "<<E32Main ret = %d", ret ); |
62 return ret; |
59 return ret; |
63 } |
60 } |
64 |
61 |
65 static void RunFdfL() |
62 static void RunFdfL() |
66 { |
63 { |