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 // e32test\misc\d_kerncorestas.h |
|
15 // |
|
16 |
|
17 |
|
18 #ifndef D_TESTKERNCORESTATS |
|
19 #define D_TESTKERNCORESTATS |
|
20 |
|
21 |
|
22 #include <e32cmn.h> |
|
23 #include <e32ver.h> |
|
24 #ifndef __KERNEL_MODE__ |
|
25 #include <e32std.h> |
|
26 #endif |
|
27 |
|
28 |
|
29 |
|
30 _LIT(KTestKernCoreStatsName,"TestKernCoreStats"); |
|
31 |
|
32 |
|
33 |
|
34 class RTestKernCoreStats : public RBusLogicalChannel |
|
35 { |
|
36 public: |
|
37 |
|
38 enum TControl |
|
39 { |
|
40 |
|
41 ERequestGetStats, |
|
42 ERequestConfigure, |
|
43 ERequestDumpInfo |
|
44 }; |
|
45 public: |
|
46 inline TInt Open(); |
|
47 inline TInt GetStats( TAny* a0); |
|
48 inline TInt Configure( TInt a0); |
|
49 inline TInt DumpInfo(); |
|
50 |
|
51 }; |
|
52 |
|
53 #ifndef __KERNEL_MODE__ |
|
54 |
|
55 inline TInt RTestKernCoreStats::Open() |
|
56 { return DoCreate(KTestKernCoreStatsName,TVersion(0,1,1),KNullUnit,NULL,NULL); } |
|
57 |
|
58 |
|
59 inline TInt RTestKernCoreStats::GetStats( TAny* a0) |
|
60 { return DoControl(ERequestGetStats, (TAny*) a0); } |
|
61 |
|
62 inline TInt RTestKernCoreStats::Configure( TInt a0) |
|
63 { return DoControl(ERequestConfigure, (TAny*) a0); } |
|
64 |
|
65 inline TInt RTestKernCoreStats::DumpInfo() |
|
66 { return DoControl(ERequestDumpInfo,NULL); } |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 #else |
|
72 |
|
73 #define DRIVER_NAME(x) |
|
74 #define DRIVER_REQUEST TInt |
|
75 |
|
76 #endif // __KERNEL_MODE__ |
|
77 |
|
78 #endif |
|
79 |
|