DSMCC  17.9.0
 All Data Structures Files Functions Typedefs
cacheMgr.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2004 Ocean Blue Software Ltd
4  * Copyright © 2001 Koninklijke Philips Electronics N.V
5  *
6  * This file is part of a DTVKit Software Component
7  * You are permitted to copy, modify or distribute this file subject to the terms
8  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
9  *
10  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
11  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
12  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
13  *
14  * If you or your organisation is not a member of DTVKit then you have access
15  * to this source code outside of the terms of the licence agreement
16  * and you are expected to delete this and any associated files immediately.
17  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
18  *******************************************************************************/
25 #ifndef _CACHEMGR_H_
26 #define _CACHEMGR_H_
27 
28 
29 /*-------------------------------- Includes --------------------------------*/
30 #include "clDsmSystem.h"
31 #include "clDsmMemMgrAPI.h" /*for DBG_STORE_LINE*/
32 
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 
39 /*----------------------------- Exported Macros ----------------------------*/
40 
41 #ifdef DBG_STORE_LINE
42 #define DSC_CmMemGet(i, s) DSC_CmMemAlloc(i, s, __LINE__)
43 #else
44 #define DSC_CmMemAlloc(i, s, l) DSC_CmMemGet(i, s )
45 #endif
46 
47 /*------------------------------ Exported Types ----------------------------*/
48 
49 
50 /*------------------------------ Exported Data -----------------------------*/
51 
52 
53 /*--------------------------- Exported Prototypes --------------------------*/
54 
55 MemHandle DSC_CmMemAlloc( P_DsmCoreInst idp, U32BIT size, int line );
56 
57 void DSC_CmMemRelease( P_DsmCoreInst idp, MemHandle hMemArea );
58 
59 BOOLEAN DSC_CmMemPurgeCache( P_DsmCoreInst idp, U32BIT maxMemory );
60 
61 /*----------------------------------------------------------------------------*/
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 #endif /* _CACHEMGR_H_ */
General include file for clDsm library internal definitions.
DSM-CC dynamic memory manager API.