Update contrib.
1 // Copyright (c) 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/mmu/t_shbuf_perfclient.h
18 #ifndef _T_SHBUF_PERFCLIENT_H_
19 #define _T_SHBUF_PERFCLIENT_H_
28 * Client side APIs for a test server used for Performance Testing of shared buffers.
33 * Provides client side access to the RShBuf test server.
35 class RShBufTestServerSession : public RSessionBase
38 IMPORT_C RShBufTestServerSession();
39 IMPORT_C TInt Connect();
40 IMPORT_C void Close();
41 IMPORT_C TVersion Version() const;
42 IMPORT_C TInt ShutdownServer();
44 IMPORT_C TInt FromTPtr8ProcessAndReturn(TDes8& aBuf, TUint aBufSize);
45 IMPORT_C TInt FromTPtr8ProcessAndRelease(const TDesC8& aBuf);
47 IMPORT_C TInt OpenRShBufPool(TInt aHandle, const TShPoolInfo& aPoolInfo);
48 IMPORT_C TInt CloseRShBufPool(TInt aHandle);
49 IMPORT_C TInt FromRShBufProcessAndReturn(RShBuf& aShBuf, TUint aBufSize);
50 IMPORT_C TInt FromRShBufProcessAndRelease(RShBuf& aShBuf);
53 // Memory checking functionality for Debug builds only.
55 IMPORT_C TInt __DbgMarkHeap();
56 IMPORT_C TInt __DbgCheckHeap(TInt aCount);
57 IMPORT_C TInt __DbgMarkEnd(TInt aCount);
58 IMPORT_C TInt __DbgFailNext(TInt aCount);
61 RShBufTestServerSession(const RShBufTestServerSession& aSession);
64 #endif // _T_SHBUF_PERFCLIENT_H_