Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\defrag\d_defrag.h
18 #if !defined(__D_DEFRAG_H__)
19 #define __D_DEFRAG_H__
21 #ifndef __KERNEL_MODE__
26 _LIT(KLddName,"DefragRef");
28 class TCapsDefragTestV01
34 /** User-side interface to the defrag LDD
36 class RDefragChannel : public RBusLogicalChannel
41 EControlGeneralDefragDfc,
42 EControlGeneralDefragDfcComplete,
43 EControlGeneralDefragSem,
44 EControlGeneralDefrag,
45 EControlAllocLowestZone,
46 EControlClaimLowestZone,
52 inline TInt GeneralDefragDfc(TRequestStatus* aReq);
53 inline TInt GeneralDefragDfcComplete();
54 inline TInt GeneralDefrag();
55 inline TInt GeneralDefragSem();
56 inline TInt AllocLowestZone();
57 inline TInt ClaimLowestZone();
58 inline TInt CloseChunk();
62 #ifndef __KERNEL_MODE__
63 inline TInt RDefragChannel::Open()
65 return DoCreate(KLddName,TVersion(0,1,1),KNullUnit,NULL,NULL);
68 inline TInt RDefragChannel::GeneralDefragDfc(TRequestStatus* aReq)
72 *aReq = KRequestPending;
74 return DoControl(EControlGeneralDefragDfc, (TAny*)aReq);
77 inline TInt RDefragChannel::GeneralDefragDfcComplete()
79 return DoControl(EControlGeneralDefragDfcComplete);
82 inline TInt RDefragChannel::GeneralDefragSem()
83 { return DoControl(EControlGeneralDefragSem); }
85 inline TInt RDefragChannel::GeneralDefrag()
86 { return DoControl(EControlGeneralDefrag); }
88 inline TInt RDefragChannel::AllocLowestZone()
89 { return DoControl(EControlAllocLowestZone); }
91 inline TInt RDefragChannel::ClaimLowestZone()
92 { return DoControl(EControlClaimLowestZone);}
94 inline TInt RDefragChannel::CloseChunk()
95 { return DoControl(EControlCloseChunk); }