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 the License "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_gobble.h |
|
15 // |
|
16 // |
|
17 |
|
18 #if !defined(__D_GOBBLE_H__) |
|
19 #define __D_GOBBLE_H__ |
|
20 #include <e32cmn.h> |
|
21 #ifndef __KERNEL_MODE__ |
|
22 #include <e32std.h> |
|
23 #endif |
|
24 |
|
25 _LIT(KGobblerLddName,"Gobbler"); |
|
26 _LIT(KGobblerLddFileName,"d_gobble"); |
|
27 |
|
28 class TCapsGobblerV01 |
|
29 { |
|
30 public: |
|
31 TVersion iVersion; |
|
32 }; |
|
33 |
|
34 class RGobbler : public RBusLogicalChannel |
|
35 { |
|
36 public: |
|
37 enum TControl |
|
38 { |
|
39 EControlGobbleRAM, |
|
40 }; |
|
41 public: |
|
42 #ifndef __KERNEL_MODE__ |
|
43 inline TInt Open() |
|
44 { return DoCreate(KGobblerLddName(),TVersion(0,1,1),KNullUnit,NULL,NULL); } |
|
45 inline TUint32 GobbleRAM(TUint32 aLeave) |
|
46 { return (TUint32)DoControl(EControlGobbleRAM, (TAny*)aLeave, 0);} |
|
47 #endif |
|
48 }; |
|
49 |
|
50 #endif |