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 "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.
16 #ifndef __D_SHAREDCHUNK_H__
17 #define __D_SHAREDCHUNK_H__
20 #ifndef __KERNEL_MODE__
24 _LIT(KSharedChunkLddName,"D_SHAREDCHUNK");
32 ECreateFlagsMask = 0xff
45 ENonContiguous = 0x00,
47 ECommitTypeMask = 0x0f
50 class RSharedChunkLdd : public RBusLogicalChannel
65 #ifndef __KERNEL_MODE__
68 { return DoCreate(KSharedChunkLddName,TVersion(),KNullUnit,NULL,NULL,EOwnerProcess,ETrue); }
69 inline TInt CreateChunk(TInt aSize, TAny** aKernelAddress=0)
70 { return DoControl(ECreateChunk,(TAny*)aSize,aKernelAddress); }
71 inline TInt GetChunkHandle(RChunk& aChunk)
72 { return aChunk.SetReturnedHandle(DoControl(EGetChunkHandle)); }
73 inline TInt CommitMemory(TInt aOffset, TInt aSize)
74 { return DoControl(ECommitMemory,(TAny*)aOffset,(TAny*)aSize); }
75 inline TInt CloseChunk()
76 { return DoControl(ECloseChunk); }
77 inline TInt GetCacheAttribute()
78 {return DoControl(ECacheAttribute);}
79 inline TBool GetContiguousAttribute()
80 {return DoControl(EContiguousAttribute);}
81 inline TInt CloseChunkHandle(RChunk aChunk)
82 { return DoControl(ECloseChunkHandle,(TAny*)aChunk.Handle()); }