equal
deleted
inserted
replaced
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of the License "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
22 #include <drivers/hcr.h> |
22 #include <drivers/hcr.h> |
23 |
23 |
24 #ifndef __KERNEL_MODE__ |
24 #ifndef __KERNEL_MODE__ |
25 #include <e32std.h> |
25 #include <e32std.h> |
26 #endif |
26 #endif |
|
27 |
|
28 #define MAX_FILENAME_LEN 64 |
27 |
29 |
28 |
30 |
29 /** |
31 /** |
30 Interface to the fast-trace memory buffer. |
32 Interface to the fast-trace memory buffer. |
31 */ |
33 */ |
75 args[2] = (TAny*) aLast; |
77 args[2] = (TAny*) aLast; |
76 |
78 |
77 return DoControl(ECtrlFileFindSettingsInCategory, (TAny*)args); |
79 return DoControl(ECtrlFileFindSettingsInCategory, (TAny*)args); |
78 } |
80 } |
79 |
81 |
80 inline TUint Test_SwitchFileRepository(const TText* aRepName) |
82 // aNameLen includes the null terminator |
|
83 inline TUint Test_SwitchFileRepository(const TText8* aRepName, TInt aNameLen) |
81 { |
84 { |
82 TAny* args[1]; |
85 __ASSERT_ALWAYS((aNameLen<MAX_FILENAME_LEN),User::Panic(_L("d_hcrut.h"), __LINE__)); |
|
86 |
|
87 TAny* args[2]; |
83 args[0] = (TAny*) aRepName; |
88 args[0] = (TAny*) aRepName; |
|
89 args[1] = (TAny*) aNameLen; |
84 return DoControl(ECtrlSwitchFileRepository, (TAny*)args); |
90 return DoControl(ECtrlSwitchFileRepository, (TAny*)args); |
85 } |
91 } |
86 |
92 |
87 |
93 |
88 inline TUint Test_CheckIntegrity() |
94 inline TUint Test_CheckIntegrity() |